Simple Perl Howto

Search and replace text in multiple files


perl -pi -e 's/OLD_TEXT/NEW_TEXT/' FILE_PATTERN

e.g.

perl -pi -e 's/Hello World/Goodbye World/' hello.c
spacer