Changeset 1879 for TOOLS/PACK_IPSL/diff.bash
- Timestamp:
- 09/13/12 18:35:26 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/PACK_IPSL/diff.bash
r1849 r1879 1 1 #!/bin/bash 2 2 set -vx 3 3 #============================================== 4 4 # … … 17 17 fi 18 18 19 cdo -s diff $1 $delname $2 > diff_$$.tmp 2>&1 19 cdo -s $delname $1 out_tmp1.nc 20 cdo -s $delname $2 out_tmp2.nc 21 22 cdo -s diff out_tmp1.nc out_tmp2.nc > diff_$$.tmp 2>&1 20 23 result2=`cat diff_$$.tmp | grep -i "records differ" | tr -s " " | cut -f2 -d" "` 21 24 … … 26 29 echo "$2" 27 30 echo "are the same" 28 rm -f diff_$$.tmp 31 rm -f diff_$$.tmp out_tmp1.nc out_tmp2.nc 29 32 exit 0 30 33 else … … 35 38 echo "differ" 36 39 cat diff_$$.tmp | grep -i "records differ" 37 rm -f diff_$$.tmp 40 rm -f diff_$$.tmp out_tmp1.nc out_tmp2.nc 38 41 echo "==============> ERROR" 39 42 exit 1
Note: See TracChangeset
for help on using the changeset viewer.