About this user

Jesse Blomberg http://imitationmonkey.com/

« Newer Snippets
Older Snippets »
1 total  XML / RSS feed 

Perl find and replace

perl -i.bak -pe "s/Old text/New text/g" file1 file2 file3


-i: the extension to append to the backup of the original file (omit the .bak for no backup)
« Newer Snippets
Older Snippets »
1 total  XML / RSS feed