#!/bin/csh #Brian Schlinig #extract_m2_199503 #startdate is the first day that I can find all the serial numbers of the # instruments deployed, not the first day of data. set startdate = 95058 set endate = 95365 set date = $startdate set can = m2 set filepath = /oasis_tmp/cosgrove/mooring/monterey/$can/raw while($date < $endate) foreach file ($filepath/$can.$date.*) echo Extracting: $file nice /oasis/bin/extract -y 1 -i specprr -c /oasis_tmp/cosgrove/mooring/monterey/cfg/$can.cfg $file end @ date ++ end set startdate = 96001 set endate = 96151 set date = $startdate while($date < $endate) foreach file ($filepath/$can.$date.*) echo Extracting: $file nice /oasis/bin/extract -y 1 -i specprr -c /oasis_tmp/cosgrove/mooring/monterey/cfg/$can.cfg $file end @ date ++ end