
#
# Get the total donations paid by check from the fund for a given week
#

if [ "$#" -ne 1 ]
then
     echo "Usage: getchecks WeekNumber"
     exit 1
fi ;

stat SAMT in fund where S le 1 and CKnum ne 0 and Wk eq $1\
| tail -1  | awk -f cash.awk
