find strings in files recursively
replace string in files with rpl
See also
http://www.commandlinefu.com/commands/tagged/404/rename
rename 's/\.c/\.cpp/' *.c
rename 's/\.MOD/\.MPG/' *.MOD
find . -name "*.txt" | awk '{ newFile=gensub("txt$", "rst", 1); system("hg rename " $0 " " newFile) }'