in reply to Re^2: One-line shell script for find and replace
in thread One-line shell script for find and replace

I still prefer:

find . -name '*.txt' -exec perl -pi -e 's/find/replace/g' {} \;
daniel

Replies are listed 'Best First'.
Re^4: One-line shell script for find and replace
by Anonymous Monk on Oct 05, 2005 at 20:17 UTC
    In the prior solution, you execute the perl interpreter once. In yours, you execute it many times. You gain maybe a little clarity, but you lose on performance. Only pointing this out if you have 10k files to deal w/