--- MITgcm/verification/testreport 2003/11/03 14:32:05 1.13 +++ MITgcm/verification/testreport 2003/11/10 17:42:51 1.15 @@ -1,6 +1,6 @@ #!/bin/bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/testreport,v 1.13 2003/11/03 14:32:05 edhill Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/testreport,v 1.15 2003/11/10 17:42:51 edhill Exp $ # $Name: $ # @@ -81,7 +81,7 @@ echo testoutput_for_prop: grep "$2" $1/$4/output.txt 1>&2 fi if [ -r $1/$4/output.txt ]; then - grep "$2" $1/$4/output.txt | sed 's/.*=//' | nl > tmp1.txt + grep "$2" $1/$4/output.txt | sed 's/.*=//' | cat -n > tmp1.txt lncnt=`wc -l tmp1.txt | awk '{print $1}' ` if [ $lncnt -lt 3 ]; then if [ $verbose -gt 0 ]; then @@ -96,7 +96,7 @@ if [ $debug -gt 0 ]; then echo testoutput_for_prop: grep "$2" $1/results/output.txt 1>&2 fi - grep "$2" $1/results/output.txt | sed 's/.*=//' | nl > tmp2.txt + grep "$2" $1/results/output.txt | sed 's/.*=//' | cat -n > tmp2.txt lncnt=`wc -l tmp2.txt | awk '{print $1}' ` if [ $lncnt -lt 3 ]; then if [ $verbose -gt 0 ]; then @@ -757,5 +757,9 @@ if test "x$CLEANUP" != xt ; then cat $SUMMARY + if test -e tr.out ; then + mv tr.out tr.out.old + fi + cat $SUMMARY > tr.out fi