How to make a backup + perform a search and replace on multiple files. Brandon 17 years ago Using perl of coarse. It took me a second to get this to work; but its pretty easy: perl -pi.bak -e ‘s/string1/string2/g’