Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!mcvax!dik
From: dik@cwi.nl (Dik T. Winter)
Newsgroups: alt.sources.d
Subject: Re: .newsrc file fixer
Keywords: rn, news, long lines
Message-ID: <8437@boring.cwi.nl>
Date: 2 Oct 89 20:30:50 GMT
References: <4784@orca.WV.TEK.COM>
Organization: CWI, Amsterdam
Lines: 19

In article <4784@orca.WV.TEK.COM> jeff@quark.WV.TEK.COM (Jeff Beadles) writes:
 > 
 > This is a little script that I tossed together to massage my .newsrc.  I tried
 > to edit it with 'vi' to move the order of some of the groups around, and clean
 > it up a bit.

And some script that will fold long lines.  There is however a much easier
procedure to get at (nearly) the same result:
	cp .newsrc .newsrc.old
	sed -e '/!/d' .newsrc.old >.newsrc
This will throw away all lines mentioning groups you are not subscribed to
(and those are presumably also the long lines).  Net effect: shorter .newsrc,
faster rn startup, no problems editing .newsrc.

Note that sed will choke if your .newsrc contains lines longer than 4000 chars!
-- 
dik t. winter, cwi, amsterdam, nederland
INTERNET   : dik@cwi.nl
BITNET/EARN: dik@mcvax