4 tail -q -n +200 2WFU_dock*.stat >remd_all.stat
5 if [ ! -s remd_all.stat ]; then
6 echo 'FATAL error - stat files empty'
10 grep ACC 2WFU_dock.out_GB000 |tail -7
11 exchange=`grep ACC 2WFU_dock.out_GB000 |tail -7|awk '{a=a+$4}END{print a/NR}'`
12 echo "average exchange = ${exchange}"
13 if [ `echo "a=${exchange};a<0.2"|bc -l` != "0" ]; then
14 echo 'ERROR average exchange smaller than 0.2'