- Timestamp:
- 05/11/12 10:15:43 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/PACK_IPSL/find_directory_simul.sh
r1709 r1715 36 36 # Pour tous les fichiers ou repertoires contenus dans le fichier de parametres 37 37 for DIR in $( awk '{print $0}' ${LISTE_SIMUL} ) ; do 38 DEM_log -1 ${SCRIPT_NAME} - Inspection de ${DIR} 38 DEM_log -1 ${SCRIPT_NAME} - Inspection de ${DIR}"/" 39 39 # trouve la liste des répertoires restart sous l'arborescence 40 40 grep ${DIR}"/" ${LISTE_DMNFS} | grep Restart | awk '{print $3}' | sed 's%/Restart.*%%' >> ${IGCM_TMP}/${$}.liste_Restart.txt … … 47 47 for DIR in $( awk '{print $0}' ${IGCM_TMP}/${$}.liste_Restart.txt ) ; do 48 48 DEM_log -3 ${SCRIPT_NAME} - Recherche path : ${DIR} 49 dirname ${DIR} >> ${IGCM_TMP}/${$}.path_simul.txt 49 50 #gestion des cas particulier tels que la creation de l'etat initial avec lmdz (JobName/ATM/Output/Restart/ au lieu de JobName/ATM/Restart/) 51 PATH_SIM=$( dirname ${DIR} ) 52 lastdir=$( echo $PATH_SIM | sed -e "s%.*/%%") 53 if [ $lastdir != "ATM" ]; then 54 dirname ${DIR} >> ${IGCM_TMP}/${$}.path_simul.txt 55 else 56 dirname ${PATH_SIM} >> ${IGCM_TMP}/${$}.path_simul.txt 57 fi 50 58 51 59 done
Note: See TracChangeset
for help on using the changeset viewer.