#!/bin/csh -f
#
# effects - calculate the effects, a la Raj Jain chapter 16
#
# run this after 'extract' and 'signtable'
set usage='usage: effects [tablefile]'
#
# 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 P=`runbin`	# where to find awk scripts

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

if ($#argv == 0) then 
    set tablefile=table
else
    set tablefile=$1
endif

nawk -f $P/effects1.awk $tablefile 
