2.9BSD/usr/contrib/news/src/rmgrp

: rmgrp newsgroup ...
cd /usr/spool/news
for i in $*
do
	echo removing $i
	rm -rf `echo $i | gr . /`
	cp /usr/lib/news/active /tmp/rmg$$
	sed "/^$i /d" < /tmp/rmg$$ > /usr/lib/news/active
done
rm -f /tmp/rmg$$