Changeset 2173


Ignore:
Timestamp:
11/26/13 11:32:51 (8 years ago)
Author:
omamce
Message:

O.M. : replace one grep by a loop. Needed for big experiments with lot of files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/SURPACK_IPSL/showPackProgress.sh

    r2136 r2173  
    240240                 purge_list=$( awk '{print $0}' $set ) 
    241241             fi 
    242              grep -v -F "$purge_list" ${IGCM_DEM}/Listing_progress.txt > ${IGCM_DEM}/Listing_progress_tmp.txt 
    243              mv ${IGCM_DEM}/Listing_progress_tmp.txt ${IGCM_DEM}/Listing_progress.txt 
     242             for purge_keyword in ${purge_list} ; do 
     243                 grep -v ${purge_keyword} ${IGCM_DEM}/Listing_progress.txt > ${IGCM_DEM}/Listing_progress_tmp.txt 
     244                 mv ${IGCM_DEM}/Listing_progress_tmp.txt ${IGCM_DEM}/Listing_progress.txt 
     245             done 
    244246         fi 
    245247     fi 
Note: See TracChangeset for help on using the changeset viewer.