Article View: news.software.readers
Article #1803Re: Need .newsrc cleanup tool
From: Matthias Urlichs
Date: Tue, 07 Jul 1992 11:29
Date: Tue, 07 Jul 1992 11:29
35 lines
2300 bytes
2300 bytes
In news.admin, article <xj5lw-h.amillar@netcom.com>, amillar@netcom.com (Alan Millar) writes: < And analyst@netcom.com (David Sternlight) didst rise up and spake forth: < >After a time my .newsrc file gets very long lines of the form: < >1-5,7,9-11,13,.... < < >Like some others, when I see such stuff getting out of hand, I go in < >manually and change 1-5, 7, 9-11, 13 to 1-13 (for example). It would be < >good if there were a tool to do that automatically--take the first and last < >number in a newsgroups's .newsrc entry, and replace the stuff in between with < >a dash. < < The "catch" command in rn does this. I can't comment on other newsreaders. < The problem is that if you read an article which is crossposted to a newsgroup you don't read, then that article is marked as read in that newsgroup. Rn does check the lower bound (from the active file) and adjusts the list accordingly, but not all news systems update that number. (Obviously, the same thing happens if a newsgroup has long expiry). Thus, you get long lines in .newsrc files which make the file unreadable for stupid editors like vi. You can't use "catch" because there are too many newsgroups. You can't use sed or awk to do it because on many systems, they have line length restrictions. Perl to the rescue. ;-) -- Remember that whatever misfortune may be your lot, it could only be worse in Cleveland. -- Matthias Urlichs -- urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de /(o\ Humboldtstrasse 7 -- 7500 Karlsruhe 1 -- Germany -- +49-721-9612521 \o)/
Technical Details
Message-ID:
<13bv6pINNa79@smurf.smurf.sub.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.mbox.zip!sparky!uunet!europa.asd.contel.com!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!smurf.sub.org!newsReferences:
<q!5l5yr.analyst@netcom.com> <xj5lw-h.amillar@netcom.com>Show Full Headers
Complete Article Headers
Message-ID: <13bv6pINNa79@smurf.smurf.sub.org> Subject: Re: Need .newsrc cleanup tool Date: Tue, 07 Jul 1992 11:29:23 +0000 From: urlichs@smurf.sub.org (Matthias Urlichs) References: <q!5l5yr.analyst@netcom.com> <xj5lw-h.amillar@netcom.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.mbox.zip!sparky!uunet!europa.asd.contel.com!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!smurf.sub.org!news Newsgroups: news.admin,news.software.readers Organization: University of Karlsruhe, FRG Lines: 34 NNTP-Posting-Host: smurf.sub.org