#! /bin/csh # tardata - C Shell script to tar raw OASIS data # set nonomatch set oasis = /oasis set today = `date -u +%y%j` cd $oasis/raw if ($#argv > 0) set today = $1 foreach name (m1a m1b m2) foreach file ($name.9*) if ( $file < $today ) then mv $file $archive/m1/$name else cp $file $archive/m1/$name endif end end