in reply to Prepending characters to lines in file
prepend the stuff and write it outwhile (<>) {
You can do that using command-line switches and stuff:print "> ", $_;
Look up -i -e -n in the perlrun man page. Get a copy of the Perl Cookbook, or one of the introductary texts.perl -i.bak -n -e "print '> ', $_" file1.txt file2.txt etc.etc
—John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Prepending characters to lines in file
by Anonymous Monk on Aug 03, 2001 at 03:59 UTC |