perl -i.bak -pe 's/string1/string2/g' *.htm