#!/bin/csh cd /scratch2/portfolios/NCEPDEV/ptmp/Jili.Dong/hwrf/com/2014101300/08l/ ln -sf $CDSAVE/HyHWRF-2014/fix/hwrf-hycom/hwrf_rtofs_hat14.north.regional.grid.a regional.grid.a ln -sf $CDSAVE/HyHWRF-2014/fix/hwrf-hycom/hwrf_rtofs_hat14.north.regional.grid.b regional.grid.b ln -sf $CDSAVE/HyHWRF-2014/fix/hwrf-hycom/hwrf_rtofs_hat14.north.regional.depth.a regional.depth.a ln -sf $CDSAVE/HyHWRF-2014/fix/hwrf-hycom/hwrf_rtofs_hat14.north.regional.depth.b regional.depth.b ln -sf $CDSAVE/HyHWRF-2014/parm/hwrf_rtofs_hat14.north.fcst.blkdat.input blkdat.input ln -sf $CDSAVE/ALL/archive/src_2.2.35/archv2ncdf2d . cp /scratch2/portfolios/NCEPDEV/marine/save/Jili.Dong/ALL/archive/src_2.2.35/archv2ncdf3z_multi.script . set fileall = `ls *289*_*.a` foreach file ($fileall) ##echo $file set new_file_name = `ls $file | cut -c1-33` echo $new_file_name sed "s/dummy/$new_file_name/g" archv2ncdf3z_multi.script > archv2ncdf3z_multi_tmp.script chmod +x archv2ncdf3z_multi_tmp.script ./archv2ncdf3z_multi_tmp.script end ##ls hwrf_rtofs_hat14.t00z.2014_286_01.a | cut -c1-33 ##./archv2ncdf3z_multi_tmp.script