Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!gatech!ncsuvx!ece-csc!ncrcae!ncr-sd!bigbang!pyramid!nsc!nsta!amos
From: amos@nsta.UUCP (Amos Shapir)
Newsgroups: news.admin
Subject: Inactive Groups
Message-ID: <313@nsta.UUCP>
Date: Thu, 16-Jul-87 17:42:49 EDT
Article-I.D.: nsta.313
Posted: Thu Jul 16 17:42:49 1987
Date-Received: Sat, 18-Jul-87 10:07:20 EDT
Reply-To: amos%nsta@nsc.com (Amos Shapir)
Distribution: world
Organization: National Semiconductor (Israel) Ltd. Home of the 32532
Lines: 21
Summary: A command file to identify inactive groups
Hdate: 20 Tamuz 5747


In view of the suggested quota system, here is something for
local control: a command (sh) file to identify all groups received
at your site but not read by anybody:

#start command file
ACTIVE=/usr/lib/news/active
cat `sed 's;[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:\([^:]*\):.*;\1/.newsrc;' /etc/passwd` 2> /dev/null \
| sed -n 's/\([^:]*\):.*[0-9]$/\1/p' |sort |uniq  > ng1
sed 's/ .*//' $ACTIVE |sort > ng2
diff ng1 ng2 | sed -n 's/^> //p'
#end command file

It gets the active groups out of everybody's .newsrc into ng1, the active
groups out of your ACTIVE file into ng2, then prints out those groups that
are in the latter but not the former. You can now use this list as food
for a short-term 'expire'
-- 
	Amos Shapir
National Semiconductor (Israel)
6 Maskit st. P.O.B. 3007, Herzlia 46104, Israel  Tel. (972)52-522261
amos%nsta@nsc.com @{hplabs,pyramid,sun,decwrl} 34 48 E / 32 10 NN