Related: space Search and replace across multiple files $ perl -p -i -e 's/regexp/REGEXP/g' filename