Here is some ways to find and replace text in multiple files using sed or perl. perl -pi -w -e 's/SEARCH/REPLACE/g;' *.txt perl -e "s/SEARCH/REPLACE/g;" -pi.save $(find DirectoryName -type f) It backs up the old file with a .save extension find /home/user -type f -exec sed -i 's/SEARCH/REPLACE/g' {} […]