find . -type f -name "*.txt" -exec sed -i'' -e 's/foo/bar/g' {} +
find -name "*foo*.filetype" -exec rename 's/foo/bar/' {} ";"
find /home/www ( -type d -name .git -prune ) -o -type f -print0 | xargs -0 sed -i 's/subdomainA.example.com/subdomainB.example.com/g'
grep -rl "oldtext" /path/to/folder | xargs sed -i 's/oldtext/newtext/g'