Changeset 6040 for TOOLS


Ignore:
Timestamp:
01/12/22 15:41:34 (2 years ago)
Author:
omamce
Message:

O.M. : change sed syntasx for compatibility with Mac OS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/MOSAIX/CreateWeightsMask.bash

    r5926 r6040  
    688688    cp add_varoce.nco add_varoce_$(basename ${rmpFile} .nc)_o_to_a.nco 
    689689    [[ ${o_to_a} = true ]] && ncap2 --history --append --script-file add_varoce_$(basename ${rmpFile} .nc)_o_to_a.nco ${OCE}_coordinates_mask.nc ${rmpFile} 
    690     sed --in-place "s/src_/dst_/g" add_varoce.nco 
     690    sed -i -e "s/src_/dst_/g" add_varoce.nco 
    691691    cp add_varoce.nco add_varoce_$(basename ${rmpFile} .nc)_a_to_o.nco 
    692692    [[ ${a_to_o} = true ]] && ncap2 --history --append --script-file add_varoce_$(basename ${rmpFile} .nc)_a_to_o.nco ${OCE}_coordinates_mask.nc ${rmpFile} 
     
    725725        fi 
    726726                     
    727         sed --in-place "s/dst_/src_/g" add_varatm.nco 
     727        sed -i -e "s/dst_/src_/g" add_varatm.nco 
    728728        cp add_varatm.nco add_varatm_$(basename ${rmpFile} .nc)_a_to_o.nco 
    729729        if [[ ${a_to_o} = true ]] ; then 
     
    769769        fi 
    770770         
    771         sed --in-place "s/dst/src/g" add_varatm.nco 
     771        sed -i -e "s/dst/src/g" add_varatm.nco 
    772772        cp add_varatm.nco add_varatm_$(basename ${rmpFile} .nc)_a_to_o.nco 
    773773        if [[ ${a_to_o} = true ]] ; then 
Note: See TracChangeset for help on using the changeset viewer.