# changes each TERM1 to TERM2 in files *.html *.html and puts the old files # to file.html.bak perl -e 's/TERM1/TERM2/gi' -p -i.bak file1.html