Warning, /verification/offline_exf_seaice/input.dyn_mce/prepare_run is written in an unsupported language. File is not indexed.
view on githubraw file Latest commit c512e371 on 2021-04-08 15:28:37 UTC
c512e371cc drin*0001 #! /usr/bin/env bash
0002
0003 #- from this dir:
0004 fromDir="../input.dyn_lsr"
0005
0006 #- in order to save disc space, take files:
0007 fileList=`(cd ${fromDir} ; ls -1 data* tr_checklist )`
0008
0009 #- from this dir:
0010 #- and do a symbolic link in the current directory
0011 # (if the file does not already exist)
0012 if test -d $fromDir ; then
0013 lnkList='files:'
0014 for xx in $fileList
0015 do
0016 if test -r ${fromDir}/$xx ; then
0017 if test ! -r $xx ; then
0018 lnkList=${lnkList}" "$xx
0019 ln -sf ${fromDir}/$xx .
0020 fi
0021 fi
0022 done
0023 echo ' link' $lnkList "from dir:" $fromDir
0024 else
0025 echo " Error:" $fromDir "not a directory"
0026 fi
0027