1*9a7741deSElliott Hughes 2*9a7741deSElliott Hughesoldawk=${oldawk-awk} 3*9a7741deSElliott Hughesawk=${awk-../a.out} 4*9a7741deSElliott Hughes 5*9a7741deSElliott Hughesecho oldawk=$oldawk, awk=$awk 6*9a7741deSElliott Hughes 7*9a7741deSElliott Hughesfor i 8*9a7741deSElliott Hughesdo 9*9a7741deSElliott Hughes echo "$i:" 10*9a7741deSElliott Hughes $oldawk -f $i test.countries test.countries >foo1 11*9a7741deSElliott Hughes $awk -f $i test.countries test.countries >foo2 12*9a7741deSElliott Hughes if cmp -s foo1 foo2 13*9a7741deSElliott Hughes then true 14*9a7741deSElliott Hughes else echo -n "$i: BAD ..." 15*9a7741deSElliott Hughes fi 16*9a7741deSElliott Hughes diff -b foo1 foo2 | sed -e 's/^/ /' -e 10q 17*9a7741deSElliott Hughesdone 18