1 #!/bin/bash 2 COUNT=0 3 while read i j; do 4 if [ $j -eq 1 ]; then COUNT=$((COUNT+1)); fi 5 done < $1 6 7 test $COUNT -eq 1280