- Timestamp:
- 03/27/12 17:56:31 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/libIGCM_MPI_OpenMP/libIGCM_comp/libIGCM_comp.ksh
r592 r603 751 751 if [ X${IsMatching} = X ] ; then 752 752 for PotentialTarFile in $( find ${R_SAVE}/RESTART -name "${config_UserChoices_JobName}_*_restart.tar" ) ; do 753 IsMatching=$( echo ${PotentialTarFile} | sed "s:^${config_UserChoices_JobName}_::" | sed "s:\.restart\.tar$::" | gawk -F_ -v restartdate=${LastPeriodDateEnd} '{if (($1 < restartdate) && ($2 >restartdate)) {print $1"_"$2}}' )753 IsMatching=$( echo $( basename ${PotentialTarFile} ) | sed "s:^${config_UserChoices_JobName}_::" | sed "s:\.restart\.tar$::" | gawk -F_ -v restartdate=${LastPeriodDateEnd} '{if (($1 < restartdate) && ($2 >= restartdate)) {print $1"_"$2}}' ) 754 754 if [ ! X${IsMatching} = X ] ; then 755 755 TarFileFound=${PotentialTarFile}
Note: See TracChangeset
for help on using the changeset viewer.