perl -pi.bak -e 's/this stuff/that stuff/g' some files