4 echo "$1 is not a directory"
8 echo "processing $1 ..."
10 rm -f $1/bond_analyze.txt
12 for i in $1/*.save; do
13 bai="`./bond_analyze $i | grep '\[bond' | grep quality`"
14 time=`echo $bai | awk '{ print $4 }'`
15 quality=`echo $bai | awk '{ print $8 }'`
16 count=`echo $bai | awk '{ print $12 }'`
17 echo "$time $quality $count" >> $1/bond_analyze.txt