LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Rep: Reputation: 52
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
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Original Poster
Rep: Reputation: 52
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
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
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
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

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


Reply



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:35 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration