🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #4291

Re: trn & newsrc file getting unreasonable

#4291
From: Felan shena Thoron'edras
Date: Fri, 28 May 1993 20:59
30 lines
1721 bytes
In article <1ttj26$9o@adv.win.tue.nl> devet@adv.win.tue.nl (Arjan de Vet) writes:
>At the university I use a program called newsclean which `cleanes' the
>.newsrc file by joining lots of ranges
>
>	a-b,c-d,e-f,...
>
>into one range 1-end (taking into account expired articles) and removes
>these numbers from unsubscribed newsgroups.  I'm now at home so I can't

When I asked a similar question a year or more ago, Jonathan Kamens provided
me with this little number:

---
#!/bin/sed -f

s/! *\([0-9][0-9]*\).*[,-]\([0-9][0-9]*\)$/! \1-\2/
---
I run it as:

$ fix.newsrc .newsrc > new.newsrc

(or was that < .newsrc > new.newsrc?  I can't remember any more, foo.  I
always have to figure it out every time.)

and then rename new.newsrc.  It's very effective.

Felan shena Thoron'edras
"Go not unto the Elves for counsel, for they will say both yea and nay."
"Now is _not_ a good time, Keiko!" - Worf, "Disaster"
"Variety is the spice of life, and I don't want to die." - Scott Borst
Technical Details
Message-ID: <1u5ug9$n1t@hecate.umd.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!darwin.sura.net!haven.umd.edu!umd5.umd.edu!syrinx.umd.edu!phillips
References: <C7JqHq.Mn7@chinet.chinet.com> <1ttj26$9o@adv.win.tue.nl>

Show Full Headers
Complete Article Headers
Message-ID: <1u5ug9$n1t@hecate.umd.edu>
Subject: Re: trn & newsrc file getting unreasonable
Date: Fri, 28 May 1993 20:59:53 +0000
From: phillips@syrinx.umd.edu (Felan shena Thoron'edras)
References: <C7JqHq.Mn7@chinet.chinet.com> <1ttj26$9o@adv.win.tue.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!darwin.sura.net!haven.umd.edu!umd5.umd.edu!syrinx.umd.edu!phillips
Newsgroups: news.software.readers
Organization: University of Maryland
Lines: 30
NNTP-Posting-Host: syrinx.umd.edu