find . -type f -exec perl -pi -e "s/string x/string y/g" {} \;