Change all instances of string1 to string2 recursively in a directory

Quite a useful little script:

find ./ -type f -exec sed -i 's/string1/string2/g' {} \;

You have viewed this page 1 times