Search-and-replace

Replace every occurrence of a string in all files below the current folder:

find . -type f | xargs perl -pi -e 's/pattern/replacement/g' *
Find every occurence of a string in all files below the current folder:

grep -r 'pattern' *