Philips wrote:
>
<snip>
> find -type f -iname '*.c' -exec perl -i~ -p -e 's/suxx/rulezz/ig' {} \;
<snip>
This is extremely slow, because it starts a new perl interpreter for
each file. Better is
find . -name '*.c' | xargs perl -pi\~ -e 's/suxx/rulezz/g;'
You'll love xargs once you know it...
Marc
--
Marc Mutz <[EMAIL PROTECTED]> http://EncryptionHOWTO.sourceforge.net/
University of Bielefeld, Dep. of Mathematics / Dep. of Physics
PGP-keyID's: 0xd46ce9ab (RSA), 0x7ae55b9e (DSS/DH)
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs