Thread View: news.software.readers
1 messages
1 total messages
Started by Matthias Urlichs
Tue, 07 Jul 1992 11:29
Re: Need .newsrc cleanup tool
Author: 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)/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads