#! /bin/sh
# Find size of current queue of news outbound to $1.  Ancient-uucp version.

# =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
. ${NEWSCONFIG-/usr/local/lib/news/bin/config}

PATH=$NEWSCTL/bin:$NEWSBIN:$NEWSPATH ; export PATH
umask $NEWSUMASK

cd /usr/spool/uucp
grade=d

case "$1" in
?|??|???|????|?????|??????|???????)	site="$1" ;;
*)	site=`expr "$1" : '^\(.......\).*'`
esac

ls | egrep "^C\.$site$grade....\$" | wc -l
