cat runList | while read x y z w v do # check if commented out if [[ $x =~ '#' ]] then echo "Skip!: $x $y commented out in file: runList" continue fi echo $x $y $v bash -x scripts/buildPathVisio.sh $x $y $v > temp.$x.$y 2> temp.$x.$y.err done # report from temp.err files grep -n ERROR temp.*.err