Ignore:
Timestamp:
05/16/12 18:24:07 (12 years ago)
Author:
acosce
Message:
  • create a list to copy for $JobName_Bands_... files
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/PACK_IPSL/archive_restart.sh

    r1728 r1730  
    7272 
    7373# On les copie sur le scratchdir en changeant le nom et conservant la date 
    74 grep ${PATH_SIMUL_FULL} ${LISTE_DMNFS} | grep Restart | awk '{print $3}' | sed '/^.*Restart$/d' >> ${IGCM_DEM_SIMU}/liste_restart_files.txt 
     74grep ${PATH_SIMUL_FULL} ${LISTE_DMNFS} | grep Restart | awk '{print $3}' | sed '/^.*Restart$/d' >> ${IGCM_TMP}/${$}.liste_restart_files.txt 
    7575 
     76   
     77gawk -F/ '{dest_name=$(NF-2)("_") $(NF); system("ln -s " $0 " "dest_name)}' ${IGCM_TMP}/${$}.liste_restart_files.txt 
    7678 
    77 #awk -F/ '{dest_name=$(NF-2)("_") $(NF); 
    78 #   system("cp --preserve " $0 " "dest_name)}' ${IGCM_DEM_SIMU}/liste_restart_files.txt 
    79    
    80 gawk -F/ '{dest_name=$(NF-2)("_") $(NF); system("ln -s " $0 " "dest_name)}' ${IGCM_DEM_SIMU}/liste_restart_files.txt 
    81  
    82 ls -l ${STORE_RESTART} > ${IGCM_DEM_SIMU}/new_liste_restart_files.txt 
     79ls -l ${STORE_RESTART} > ${IGCM_TMP}/${$}.new_liste_restart_files.txt 
    8380 
    8481### 2- creer les listes de fichiers par periode #### 
     
    121118 
    122119   
    123    for file in `awk '{print $9}' ${IGCM_DEM_SIMU}/new_liste_restart_files.txt`; do  
     120   for file in `awk '{print $9}' ${IGCM_TMP}/${$}.new_liste_restart_files.txt`; do  
    124121    
    125122     extract_date_file=`echo ${file}  | sed -e "s/.*\${JobName}_//"` 
Note: See TracChangeset for help on using the changeset viewer.