nix, shell, perl, php, mysql and mac os x tips and tricks

Saturday, October 18, 2003

Search and replace text in files from the command line

find . -name '*.html' -maxdepth 1 | xargs perl -pi -e 's/search_text/replace_text/g;'

No comments:

Post a Comment