#!/bin/csh -f
#
# shrink-suite
#
# shrink a suite file from a multi-trial file into a single-trial file
#
# Part of
#              The STARFISH Parallel file-system simulator
#        (Simulation Tool for Advanced Research in File Systems)
# 
#                               David Kotz
#                           Dartmouth College
#                              Version 3.0
#                              January 1996
#                          dfk@cs.dartmouth.edu

if ($#argv != 1) then
  echo usage: shrink-suite suite-filename
  exit 1
endif

gawk < $1 '\
$1 == "cd" && $NF != 1 { next } \
{ print }'
