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' {} +
sed -i 's/old-text/new-text/g' input.txt
find /home/www \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/subdomainA\.example\.com/subdomainB.example.com/g'