Replace all occurrences of "StringA" with "StringB" in the *.php and *.html files residing in the current directory tree
find . \( -name "*.php" -or -name "*.html" \) | xargs grep -l StringA | xargs sed -i -e 's/StringA/StringB/g'