#!/bin/csh -f##Script by BAK on cruise jc032 to create symbolic links.#Modified by BGW for cruise di346#Modified by CPA to import oxygen files from /Drobo #The assumption is that the raw files are named#in a way that identifies the instrument, eg# ctd_jc032_001_ctm.cnv### The initial foreach command will need to be modified for each cruise.#cd data#cd ctd# modded bak di368# modded bak jr302 8 jun 2014 to use rsynccdcd cruise/datacd ctdcd BOTTLE_OXY rsync -av jcrfs_oxy/* .foreach i (`ls JR302OXY???.csv`)#echo $iset num = `echo $i | awk '{print substr($1,9,3)}'`set cruise = 'jr302'#echo $numset linkfile = oxy_${cruise}_${num}.csv#echo $linkfileif (! -e $linkfile) then echo Making link $linkfile for raw file $i ln -s $i $linkfileendifend