1*9a7741deSElliott Hughes# an arbitrary collection of input data 2*9a7741deSElliott Hughes 3*9a7741deSElliott Hughescat td.1 td.1 >foo.td 4*9a7741deSElliott Hughessed 's/^........................//' td.1 >>foo.td 5*9a7741deSElliott Hughespr -m td.1 td.1 td.1 >>foo.td 6*9a7741deSElliott Hughespr -2 td.1 >>foo.td 7*9a7741deSElliott Hugheswc foo.td 8*9a7741deSElliott Hughes 9*9a7741deSElliott Hughestd=foo.td 10*9a7741deSElliott Hughes>footot 11*9a7741deSElliott Hughes 12*9a7741deSElliott Hughesfor i in $* 13*9a7741deSElliott Hughesdo 14*9a7741deSElliott Hughes echo $i >/dev/tty 15*9a7741deSElliott Hughes echo $i '<<<' 16*9a7741deSElliott Hughes cd .. 17*9a7741deSElliott Hughes echo testdir/$i: 18*9a7741deSElliott Hughes ind <testdir/$i 19*9a7741deSElliott Hughes a.out -f testdir/$i >drek.c 20*9a7741deSElliott Hughes cat drek.c 21*9a7741deSElliott Hughes make drek || ( echo $i ' ' bad compile; echo $i ' ' bad compile >/dev/tty; continue ) 22*9a7741deSElliott Hughes cd testdir 23*9a7741deSElliott Hughes 24*9a7741deSElliott Hughes time /usr/bin/awk -f $i $td >foo2 2>foo2t 25*9a7741deSElliott Hughes cat foo2t 26*9a7741deSElliott Hughes time ../drek $td >foo1 2>foo1t 27*9a7741deSElliott Hughes cat foo1t 28*9a7741deSElliott Hughes cmp foo1 foo2 || ( echo $i ' ' bad; echo $i ' ' bad >/dev/tty; diff foo1 foo2 | sed 20q ) 29*9a7741deSElliott Hughes echo '>>>' $i 30*9a7741deSElliott Hughes echo 31*9a7741deSElliott Hughes echo $i: >>footot 32*9a7741deSElliott Hughes cat foo1t foo2t >>footot 33*9a7741deSElliott Hughesdone 34*9a7741deSElliott Hughes 35*9a7741deSElliott Hughesctimes footot 36