#!/bin/bash usage() { echo "processResults.sh " exit 1 } root=`pwd` echo $root graphFile=graph.data if [ $# != 1 ] ; then usage fi mkdir -p results for file in `find $1 -name $graphFile` ; do dir=`dirname $file` echo Processing : $dir pushd $dir &> /dev/null $root/process.sh $graphFile echo Copying Images cp work/*png $root/results/ popd &> /dev/null echo Done done