perlreplace text in a file with perlhere’s how to replace text in a file with perl: perl -pi -e ‘s~OLDTEXT~NEWTEXT~g’ /path/to/filename Steve StonebrakerJuly 3, 2011