LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-28-2004, 12:01 PM   #1
rblampain
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 7
Posts: 833

Rep: Reputation: 35
bash + html + javascript or just bash ?


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.

Can anyone suggest how to approach this?
 
Old 11-29-2004, 04:37 AM   #2
darkRoom
Member
 
Registered: Mar 2004
Location: Valencia, espaņa
Distribution: Slack, Gentoo, Custom
Posts: 162

Rep: Reputation: 30
So as i understand you want to use a browser as your interface ?

Do you know any perl ?
 
Old 11-29-2004, 11:22 PM   #3
rblampain
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 7
Posts: 833

Original Poster
Rep: Reputation: 35
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.
 
Old 11-29-2004, 11:25 PM   #4
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Rep: Reputation: 121Reputation: 121
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.
 
Old 12-01-2004, 07:53 AM   #5
rblampain
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 7
Posts: 833

Original Poster
Rep: Reputation: 35
Thank you all, it looks like the solution is MySQL and PHP
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ls *.html bash scripting bhar0761 Linux - Newbie 15 09-20-2005 11:07 PM
Checking for a valid HTML link in Bash/Korn? Aziz Programming 1 11-30-2004 04:10 PM
Bash script for correcting HTML tags hq4ever Programming 4 11-08-2004 04:06 AM
why did bash 2.05b install delete /bin/bash & "/bin/sh -> bash"? johnpipe Linux - Software 2 06-06-2004 06:42 PM
How can I transform XML into HTML on bash? pedrosan Linux - Newbie 0 04-22-2004 02:37 AM


All times are GMT -5. The time now is 11:09 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration