#!/bin/csh -f
#
# cvshow - show the cvs for a set of .imp files
#   This takes a list of config directories, and produces
# a sorted list of cv/filename pairs, for all .avg files
# in the config directories.
#
set usage='usage: cvshow [configdir]...'
#
# Part of
#              The STARFISH Parallel file-system simulator
#        (Simulation Tool for Advanced Research in File Systems)
# 
#                               David Kotz
#                           Dartmouth College
#                              Version 3.0
#                              October 1996
#                          dfk@cs.dartmouth.edu

set cvlist=/tmp/cvshow$$
onintr cleanup

echo > $cvlist
foreach i ($*)
   gawk '{print $15, FILENAME}' $i/results/*.avg >> $cvlist
end

sort -nr $cvlist

cleanup:
rm -f $cvlist
