1 2 3 4 5 6 7 8 9 10
#!/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