From marc@r-node.gts.org Fri Jul 10 06:22:25 1992
From: marc@r-node.gts.org (Marc Fournier - Sys Admin)
Newsgroups: news.admin
Subject: Re: Need .newsrc cleanup tool
Date: 9 Jul 92 16:48:16 GMT
Organization: R-node Public Access UNIX System (416-249-5366) 24hrs.

In article <JIK.92Jul5222631@pit-manager.mit.edu> jik@athena.mit.edu (Jonathan I. Kamens) writes:
>In article <1389rsINN46n@nigel.msen.com> emv@msen.com (Edward Vielmetti) writes:
>
>   (sed script to clean .newsrc)
>
>   some versions of sed choke on long lines, be careful here.
>
>perl -i.bak -pe 's/: *([0-9]*).*[,-]([0-9]*)$/: $1-$2/ || s/'\!'.*/'\!' /;' \
>	.newsrc
>
>-- 
>Jonathan Kamens						jik@MIT.Edu
>MIT Information Systems/Athena		    Moderator, news.answers
>    (Send correspondence related to the news.answers newsgroup
>	{and ONLY correspondence related to the newsgroup}
>		 to news-answers-request@MIT.Edu.)

And, if you want the easiest way to do it, there is a program called
newsclean that is availble by ftp'ing to ftp.uu.net and I think it
is in /usenet/comp.sources.misc(.unix)  It does a very nice job
of cleaning up your .newsrc by making the 'numbers' continuous (1-n)
and it also sorts it by putting everything you read at the top of the
.newsrc and not mixed all over the place.

If you need more info, email me and I'll get you the exact place it is
found, in case you can't ftp directly and your site allows for it to
come through the mail.

Marc

-- 
**********************************************************************
| Marc Fournier       R-Node Public Access Unix         416-249-5366 |
| 1800+ newsgroups 	 Running UnixBBS 1.03          network email |
| 7 days/week          shell accounts available           24 hrs/day | 
|            Telebit T3000/SupraModem 2400/Cardinal 2400             | 
| marc@r-node.gts.org        r-node!marc            marc@r-node.uucp |
**********************************************************************

