linux unwrap text file

September 13, 2012

I spent forever trying to figure out how to unwrap an apache access_log that was splitting […]

perl replace text in multiple files

August 4, 2011

perl replace text in multiple files perl -pi -e ‘s~OLDTEXT~NEWTEXT~g’ /path/to/filenames/* Alternative (to avoid escaping slashes): […]

replace text in a file with perl

July 3, 2011

here’s how to replace text in a file with perl: perl -pi -e ‘s~OLDTEXT~NEWTEXT~g’ /path/to/filename