Problems? Is your data what you think it is? | |
PerlMonks |
Re: substitute a word in the whole file .. how ???by dbwiz (Curate) |
on Aug 13, 2003 at 11:28 UTC ( [id://283508]=note: print w/replies, xml ) | Need Help?? |
This one-liner will save your old file into txtfile.bak, and modify txtfile by changing every occurrence of "frog" into "toad". See perlrun for details on the command line arguments.
In Section
Seekers of Perl Wisdom
|
|