#!/usr/bin/csh mv $3 ${3}.bak sed -e "s/$1/$2/g" ${3}.bak > $3