Find all files, execute a grep command to search for a specific string, and replace it with a different string in all of the found files.
find -exec grep -l {} \; | xargs -I {} sed -i 's/string/differentstring/g' {}