As an example: to change all occurances of foo in bar in a file:
perl -pi -e 's/foo/bar/g' file
See perlrun for more on perl command switches.
HTH,
Paul
In reply to Re: simple text substitution.
by rev_1318
in thread simple text substitution.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |