Linux Shell Global Search & Replace
Replace String in all files matched by grep:
perl -p -i -e ‘s/oldstring/newstring/g’ `grep -ril searchpattern *`
Same thing - recursive below start folder
find -name ‘*.html’ -print -exec sed -i.bak ‘s/foo/bar/g’ {} \;

