find . -name '*.htm' -type f -print | xargs perl -i -pe's/foo/bar/'