1 #!/bin/sh 2 3 uudecode print-flags.puu 4 5 for i in x xx X XX A AA; do 6 if (../tcpdump -$i -s0 -nr print-flags.pcap | tee print-$i.new | diff - print-$i.out) 7 then 8 echo print-$i passed. 9 else 10 echo print-$i failed. 11 fi 12 done 13