1
2oldawk=${oldawk-myawk}
3awk=${awk-../a.out}
4
5echo oldawk=$oldawk, awk=$awk
6
7for i
8do
9 echo "$i:"
10 $oldawk -f $i test.data >foo1
11 $awk -f $i test.data >foo2
12 if cmp -s foo1 foo2
13 then true
14 else echo -n "$i: BAD ..."
15 fi
16 diff -b foo1 foo2 | sed -e 's/^/ /' -e 10q
17done
18