perl -pi.bak -e 's/this/that/g' infile