#! /bin/sh #------------------------------------------------------------------------------ # part of the sn-package for eisfair # show subscribed NG's # last update: 2003/09/11 # (c) 2001-2003 by Christian Würdig (eisfair@chriswue.de) #------------------------------------------------------------------------------ cd /var/spool/news/ #anz=`ls -1 | wc -l | sed -e "s#^ *##"` anz=`ls -1 | grep -c ".*"` clrhome colecho "Subscribed newsgroups ($anz)" gn echo cnt=0 for i in *; do echo "$i" cnt=`expr $cnt + 1` if [ "$cnt" -eq 20 ]; then echo /var/install/bin/anykey cnt=0 clrhome colecho "Subscribed newsgroups ($anz)" gn echo fi done echo /var/install/bin/anykey exit 0