Find and Replace text in multiple files (with Perl)

From Birnam Designs Wiki

Jump to: navigation, search
find . -name '*.html' | xargs perl -pi -e 's/oldtext/newtext/g'

You can also Replace Text in Multiple Files (with sed)

Share This!
This page was last modified on 11 February 2010, at 19:54. This page has been accessed 672 times.