replace the word foo to bar in the current folder in all the regular/normal files containing the word "baz" in their name (does not update the file)
find . -type f -name "*baz*" -exec sed -i 's/foo/bar/g' {} +