OTOH: I prefer to use xargs for situations like this, just because the command line usually has limits.perl -pi -w -e 's/find/replace/g' `find . -name \*.txt`
find . -name \*.txt -print0 | xargs -0 perl -pi -w -e 's/find/replace/ +g'
In reply to Re^2: One-line shell script for find and replace
by Skeeve
in thread One-line shell script for find and replace
by pkk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |