# Find and replace all instances of FOO with BAR in all matching files. find . -type f -print | xargs sed -i 's/FOO/BAR/g'