#!/bin/sh for x in *.html; do sed -f substitute.sed $x >tmp.tmp mv tmp.tmp $x; done