On 03/11/10 14:44, Barry Samuels wrote:
Govind
It was very kind of you to take the trouble to write that script and, although my Perl is not especially good, I should be able to make a few modifications so that it will go through all files in a specified directory.
So, yes, it does help. Thank you very much.
It's a bit late, and a bit moot now as you have a script to work with, but I think you may be able to also do it with SED or AWK.
As for modifying the script, as it accepts a filename parameter, you should just be able to call it from the commandline using FOR and Bob's your Mother's Brother....
This might do it - I'm not an expert on the syntax of for. Note I think they're "Back-ticks" ` (key to left of the 1 key), not apostrophes '
for filename in `ls *.html`; do run_my_script $filename; done
HTH Steve