ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a home made log file that contains sets of filenames of text files and associated notes,
for example:
note 1
note 2
note 3
/dir/subdir/filenam1
note
another note
/dir/anotherdir/sub/somefile
....
I need to process this file in the following manner:
1) copy a contiguous selected part of it to a new file
(can be done manually with copy and paste up to here)
2) select from this new file the associated notes and filename sets one after the other
3) leave as or change or remove or add to notes and/or to file of "filename" selected in 2)
4) record type of changes made in 3) + filename into a new log file
5) save new files modified in 3)
6) append file created in 4) at the end of my home made log file
I use the emacs editor.
my main objectives are to:
1) avoid typing at the keyboard as much as possible to avoid mistakes
2) use bash script + HTML and javascript, if possible, to make it easier for the user if 'clicking'
options (in 3)) can be implemented.
No, I don't know Perl and I would prefer not to learn it. I've got some basic experience with "bash" and "javascript" and what really has to be coded, I do in
assembly language.
If you don't mind writing a server side script to achieve this (you can use a database to store the log) you can learn MySQL and PHP. They are both very easy to learn and is very useful for developing apps with web interfaces.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.