Linux Substitua a string em arquivos recursivamente
find . -type f -name "*.txt" -exec sed -i'' -e 's/foo/bar/g' {} +
Lions and Tigers and Code...
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'