#!/bin/csh -f
#
# groupdata - pull all the .data and .avg files together into two big files.
#
set usage='usage: groupdata'
#
# 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

if ($#argv > 0) then
	echo "$usage"
	exit 1
endif

echo > all.data
echo > all.avg

foreach dir (configs/*)
	cat $dir/results/*.data >> all.data
	cat $dir/results/*.avg >> all.avg
	cat $dir/results/*.imp >> all.imp
end

