#! /bin/csh # process.all - C Shell script to remove processed OASIS data # and reprocess it all # cd /usr/local/oasis foreach name (adcp atlas ctd gps oasis par spectro) rm -f decoded/$name decoded/$name.Z cp src/$name.hdr decoded/$name foreach file ($name/9*) grep -v \# $file >> decoded/$name end if ( $name != atlas ) \ compress decoded/$name end awk -f bin/atlmean.awk decoded/atlas > decoded/atlas.mean awk -f bin/atlreset.awk decoded/atlas > decoded/atlas.resets compress decoded/atlas