Replacing text string with sed This command substitutes text in multiple files: sed -i 's/bad/good/g' *.html ---- mar 2008