find and replace in multiple files on command line July 23, 2023 by Tarik there are many ways .But one of the answers would be: find . -name '*.html' |xargs perl -pi -e 's/find/replace/g'