in reply to Re: One-line shell script for find and replace
in thread One-line shell script for find and replace
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'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: One-line shell script for find and replace
by ruoso (Curate) on Oct 05, 2005 at 18:17 UTC | |
by Anonymous Monk on Oct 05, 2005 at 20:17 UTC |