#! /bin/sh
# counts # of BBLs in the BBL files

#USE AS: CountBBLs
#!!!!!!!!!! THE SPACES (OR LACK THEREOF) IS VERRY IMPORTANT IN SH SCRIPT!!!!!!

for i in *BBL
do
    BBLs=`grep 'address=' $i | grep -v ' 0 time' | wc -l | awk '{print $1}'`
    echo "$i: $BBLs Nonzero BBLs"
done 

