find . -type f -name '*.html' -print0 | \ xargs -0 perl -i.bak -plwe 's/foo/bar/g'