See perldoc perlrun for the -p and -i option and modify to '-pi.bak' or somesuch if you want a backup of all files.find . -type f | xargs perl -pi -e 's/old/new/g'
In reply to Re: Need one-liner to s///g in all sub-dirs
by runrig
in thread Need one-liner to s///g in all sub-dirs
by dvergin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |