🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #4246

Re: trn & newsrc file getting unreasonable

#4246
From: Mark Bixby
Date: Tue, 25 May 1993 15:44
14 lines
1342 bytes
We use the following shell script to condense our .newsrc files:

#!/bin/csh
mv .newsrc .newsrc.old
awk 'NF<2  { print $0 } \
     NF>=2 { j=split($2, arr1, ",") \
             k=split(arr1[j], arr2, "-") \
             printf "%s 1-%s\n", $1, arr2[k] } ' < .newsrc.old > .newsrc
-- 
Mark Bixby                         Internet: markb@cccd.edu
Coast Community College District   1370 Adams Avenue
District Information Services      Costa Mesa, CA, USA  92626
Technical Support                  (714) 432-5064
"You can tune a file system, but you can't tune a fish." - tunefs(1M)
Technical Details
Message-ID: <1ttesp$pvv@spock.dis.cccd.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!howland.reston.ans.net!usc!cs.utexas.edu!uunet!news.cccd.edu!news.cccd.edu!not-for-mail
References: <C7JqHq.Mn7@chinet.chinet.com>

Show Full Headers
Complete Article Headers
Message-ID: <1ttesp$pvv@spock.dis.cccd.edu>
Subject: Re: trn & newsrc file getting unreasonable
Date: Tue, 25 May 1993 15:44:25 +0000
From: markb@spock.dis.cccd.edu (Mark Bixby)
References: <C7JqHq.Mn7@chinet.chinet.com>
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!howland.reston.ans.net!usc!cs.utexas.edu!uunet!news.cccd.edu!news.cccd.edu!not-for-mail
Newsgroups: news.software.readers
Organization: Coast Community College District, Costa Mesa, CA
Lines: 14
Reply-To: markb@cccd.edu
NNTP-Posting-Host: spock.dis.cccd.edu