#!/bin/csh foreach f (*.c *.h mpfr.texi) sed "s/$1/$2/g" $f > /tmp/$f mv /tmp/$f $f end cd tests foreach f (*.c) sed "s/$1/$2/g" $f > /tmp/$f mv /tmp/$f $f end