#!/bin/sh

# usage: chktape <tape_trace>
# used to detect tachyons in a tape trace file
# if any tachyons are detected the corresponding
# recv events are printed out

if [ $# != 1 ]
then echo usage: chktape tapepvmtrace
     exit
fi

if [ ! -f $1 ]
then echo $1: no such trace
     exit
fi

awk -f tach1.awk $1 | sort +4n -5 +5n -6 +0n -1 | awk -f tachyon.awk
