Changeset 545 for trunk/libIGCM/AA_clean_month
- Timestamp:
- 02/07/12 14:43:43 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_clean_month
r428 r545 77 77 #==================================================== 78 78 #R_SAVE : Job output directory 79 #R_BUFR : Job output buffered directory 79 80 if ( [ ! X${config_UserChoices_SpaceName} = X ] && [ ! X${config_UserChoices_ExperimentName} = X ] ) ; then 80 81 FreeName=$( echo ${config_UserChoices_JobName} | sed 's/.*_//' ) 81 82 R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 83 R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 82 84 else 83 85 R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 86 R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 84 87 fi 85 88 IGCM_sys_TestDirArchive ${R_SAVE} … … 88 91 if [ ! -f ${SUBMIT_DIR}/run.card ]; then 89 92 echo "You seem NOT to have a run.card in this directory !!" 90 echo "This script will fail because it doesn't know what to do without run.card avai ble."93 echo "This script will fail because it doesn't know what to do without run.card available." 91 94 exit 1 92 95 else … … 104 107 set +A ListFiles -- $( IGCM_sys_RshArchive "find ${R_SAVE} -name \"*${PeriodDateEnd}*\" " ) 105 108 CountListFiles=${#ListFiles[@]} 109 110 echo "Search files with ${PeriodDateEnd} in ${R_BUFR}" 111 set +A ListFilesBuf -- $( IGCM_sys_RshMaster "find ${R_BUFR} -name \"*${PeriodDateEnd}*\" " ) 112 CountListFilesBuf=${#ListFilesBuf[@]} 106 113 107 114 # If exist, erase REBUILD DIR … … 124 131 IGCM_debug_Print 2 -e "\033[1;31m ${file}\033[m" 125 132 done 133 for file in ${ListFilesBuf[@]} ; do 134 IGCM_debug_Print 2 -e "\033[1;31m ${file}\033[m" 135 done 126 136 127 echo "\033[1;32mDo you REALLY want to erase all those files ?"128 echo -n " Your answer (y/n) : \033[m"137 echo -e "\033[1;32mDo you REALLY want to erase all those files ?" 138 echo -n -e " Your answer (y/n) : \033[m" 129 139 read reponse 130 140 case ${reponse} in … … 133 143 echo "OK. It will be erased." 134 144 IGCM_sys_RshArchive "find ${R_SAVE} -name \"*${PeriodDateEnd}*\" -exec rm -f '{}' \;" 145 IGCM_sys_RshMaster "find ${R_BUFR} -name \"*${PeriodDateEnd}*\" -exec rm -f '{}' \;" 135 146 echo "done." 136 147 ;; … … 147 158 done 148 159 149 echo "\033[1;32mDo you REALLY want to erase all those Directories ?"150 echo -n " Your answer (y/n) : \033[m"160 echo -e "\033[1;32mDo you REALLY want to erase all those Directories ?" 161 echo -n -e " Your answer (y/n) : \033[m" 151 162 read reponse 152 163 case ${reponse} in
Note: See TracChangeset
for help on using the changeset viewer.