Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!husc6!rutgers!sri-spam!mordor!lll-tis!ptsfa!hoptoad!unisoft!jef From: jef@unisoft.uucp (Jef Poskanzer) Newsgroups: news.software.b Subject: Re: Cross-postings found to be harmful Message-ID: <469@unisoft.UUCP> Date: Thu, 23-Jul-87 15:31:19 EDT Article-I.D.: unisoft.469 Posted: Thu Jul 23 15:31:19 1987 Date-Received: Sat, 25-Jul-87 10:51:16 EDT References: <105@aiva.ed.ac.uk> Sender: news@unisoft.UUCP Reply-To: jef@unisoft.UUCP (Jef Poskanzer) Organization: Paratheo-Anametamystikhood Of Eris Esoteric, Ada Lovelace Cabal Lines: 30 In the referenced article, bert@aiva.ed.ac.uk (Bert Hutchings) wrote: >If an article is posted to newsgroups A and B, and I subscribe to group A >but not B, when I've read it (in group A, of course) its B article number >is comma-concatenated on to the group B line in my .newsrc file. Some of >the lines have got enormous in the last six months, and a manual clean-up >shrank the file from 6.4 to 4.3 KB. I've appended a script of mine which sorts my .newsrc and also truncates those lines. I run it every month or so. --- Jef Jef Poskanzer unisoft!jef@ucbvax.Berkeley.Edu ...ucbvax!unisoft!jef "...I'm looking for the joke with a microscope." - - - - - - - - - - #!/bin/csh -f # # sortnewsrc -- by Jef Poskanzer set f1=/tmp/sortnewsrc1$$ f2=/tmp/sortnewsrc2$$ grep -v \! $NEWSRC | sort > $f1 grep \! $NEWSRC | sort | sed -e 's/\!.*/\!/' > $f2 cat $f1 $f2 > $NEWSRC rm $f1 $f2