Script (bash) To Collect Data

I need a rather simple bash script. It should do this:

1. wget http:\example.com\file001
2. save it to temporaryfile.
3. grep all lines with “searchstring”
4. save result to result.file
5. repeat for http\example.com\file002 untill file999
6. add all results to end of result.file.
I will use result.file to work with in excel etc. but plain.txt is OK for me to work with.

script should loop untill all files are done. May be bash script, but other langugages are OK, should just do the job.

Regards, Eef

Leave a Reply

Your email address will not be published. Required fields are marked *