

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

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

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