Search and replace in multiple files

Took me a while to figure out, but if you want to search and replace text within multiple files, use the following:

find . -type f | xargs sed -i -e 's/\.php/\.php5/g'

This will find all occurences of .php and change them to .php5
It will search all files in the current directory and recurse through all directories found.

Get low cost holiday inspiration with my new project: :)