Look for the documentation of the -p and -i switches in perldoc perlrun. In what context are you trying to do this?$ perl -pi.bak -e's/foo/bar/' file1 file2 ..
Makeshifts last the longest.
In reply to Re: Replacing a string in a file
by Aristotle
in thread Replacing a string in a file
by Avi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |