in reply to In-place editing of files (was: general perl question)
Will do the search and replace SPONGE for WIBBLE on file FILE, write the changes back, while saving the original file as FILE.orig. See perlrun for more info.perl -pi '.orig' -e 's/SPONGE/WIBBLE/' FILE
UPDATE
Could you please try and name your
nodes with care. General Perl question will not help someone else looking for the same answer as you. It is a good question but a more carefully worded question would have really increased the value of the node.
--
Zigster
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Specific perl question, requiring a specific title (00001)
by frankus (Priest) on Apr 24, 2001 at 15:07 UTC |