#!/bin/csh set cfgpath = /oasis.old/users/brian/mooring/eqpac/cfg #============================================ # Move 199611 deployment data and extract it #============================================ set start = 1 set end = 9 set n = $start set can = ep1 set srcpath = /oasis/eqpac/deployments/199611/raw set dstpath = /oasis.old/users/brian/mooring/eqpac/ep1/raw while($n < $end) foreach file ($srcpath/$can.$n.gz) echo $n. $can.$n.gz echo moving::::: $file cp $file $dstpath/ echo unzipping:: $dstpath/$can.$n.gz gunzip $dstpath/$can.$n.gz echo extracting: $dstpath/$can.$n nice /oasis/bin/extract -b -y 1 -i specprr -c $cfgpath/$can.cfg $dstpath/$can.$n echo removing::: $dstpath/$can.$n rm -f $dstpath/$can.$n end @ n ++ end