#!/bin/tcsh # look at all trq files and pull all ECN markings into a single file if ($1 == "") then echo "Usage: grab-marks outfile" exit endif set outfile = $1 if ! (-e ~/tmp) then touch ~/tmp else rm ~/tmp touch ~/tmp endif foreach i (*-??.trq.gz) zcat $i | awk '{if ($1=="-" && $14=="----E-N") print}' >> ~/tmp end # find earliest mark and output /home/research/multi-cl/bin/find-earliest-mark.pl < ~/tmp >! $outfile # cleanup rm ~/tmp