🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #28071

Re: Like trn, but without .newsrc?

#28071
From: Tad McClellan
Date: Wed, 04 Dec 1996 00:00
36 lines
1871 bytes
E. (erisson@kallisti.sw-tech.com) wrote:
: Charles Packer <packer@cais.cais.com> wrote:
: > 
: > Now that I get only five megabytes of disk space free from
: > my Internet service provider, it's come to my attention that
: > with 18,000 newsgroups, the .newsrc file is a half megabyte.
: > Combined with .oldnewsrc, that's a whole megabyte, or 20%
: > of my free space!

: Assuming that you want to stick with trn, and that you have perl on your
: system, try typing this, from a shell prompt:

: mv ~/.newsrc ~/.newsrc.backup
: perl -e 'while (<>) {print unless /\!/}' < ~/.newsrc.backup > ~/.newsrc

: If something goes wrong, you can always do 'mv ~/.newsrc.backup ~/.newsrc'
: to recover.

: And I THINK (but am not enough of a trn expert to state definitively) that
: you can remove .oldnewsrc and it will get recreated.

: -E (who knows about perl's -i flag, but isn't sure how to use it, really)


without checking the correctness of the one-liner, the way to do
the above with the -i switch:

perl -i.backup -e 'while (<>) {print unless /\!/}'  ~/.newsrc  # UNTESTED!


--
  Tad McClellan,      Logistics Specialist (IETMs and SGML guy)
                      email: mcclellantj@lmtas.lmco.com

Technical Details
Message-ID: <5845p1$7qf6@quest.lmtas.lmco.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <5818su$e6c@news2.cais.com> <slrn5a9j0q.18d.erisson@kallisti.sw-tech.com>

Show Full Headers
Complete Article Headers
Message-ID: <5845p1$7qf6@quest.lmtas.lmco.com>
Subject: Re: Like trn, but without .newsrc?
Date: Wed, 04 Dec 1996 00:00:00 +0000
From: mcclellantj@harrier13 (Tad McClellan)
References: <5818su$e6c@news2.cais.com> <slrn5a9j0q.18d.erisson@kallisti.sw-tech.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 202318622
Organization: LMTAS News Server
Reply-to: mcclellantj@lmtas.lmco.com
Newsgroups: news.software.readers