#!/bin/bash Here=$PWD if [ ! "$1" = "" ] then for file in $1* do echo "Working on " $file sh getDat $file sh graphDat $file cd $file gawk -v loc=$PWD -f $Here/policy.awk policy.txt cd - sh clean $file done rm *.eps rm *.pdf fi