Changeset 465 for trunk/libIGCM


Ignore:
Timestamp:
05/09/11 14:16:21 (13 years ago)
Author:
mafoipsl
Message:

Add file_in to sort correctly list of output text files before concatenation.
ocean.output, ocean.output_0001, ocean.output_0002
lmdz.x.prt0, lmdz.x.prt1, lmdz.x.prt2, ... , lmdz.x.prt10

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_comp/libIGCM_comp.ksh

    r457 r465  
    10501050                unset list_file 
    10511051                #set +A list_file -- $( ls ${file_in}* | sort 2>/dev/null ) 
    1052                 set +A list_file -- $( for i in $(ls ${file_in}* 2>/dev/null | sed "s/${file_in}//" | sort -n) ; do ls ${file_in}$i ; done ) 
     1052                #  result for a a1 a10 a2 with file_in=a a a1 a2 a10 
     1053                set +A list_file -- $( [ -f ${file_in} ] && ls ${file_in} ; for i in $(ls ${file_in}* 2>/dev/null | sed "s/${file_in}//" | sort -n) ; do ls ${file_in}$i ; done ) 
    10531054                nlist_file=${#list_file[@]} 
    10541055                if [ ${nlist_file} -gt 1 ] ; then 
Note: See TracChangeset for help on using the changeset viewer.