#!/bin/csh foreach cr ( `/bin/ls | grep 'cr[0-9][0-9][0-9][0-9]' | awk '{print substr( $0, 3, length( $0)-2) }'` ) echo Looking for CR $cr summary plots if ( ! -e ./cr${cr}/sta_cr${cr}_spec_v2.gif ) then echo Need to generate $cr echo $cr a carr_rot | gawk -f makeCRsummary.gawk | csh else echo $cr alread exists endif if ( ! -e ./cr${cr}/stb_cr${cr}_spec_v2.gif ) then echo Need to generate $cr echo $cr b carr_rot | gawk -f makeCRsummary.gawk | csh else echo $cr alread exists endif end at -c -f makesummaryplot.sh noon tomorrow