🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
18 messages
18 total messages Started by Charles Packer Tue, 03 Dec 1996 00:00
Like trn, but without .newsrc?
#28066
Author: Charles Packer
Date: Tue, 03 Dec 1996 00:00
24 lines
1489 bytes
I've used trn for many years, but that was when I was using
it on my employer's equipment that had loads of disk space
and I didn't care any more about the .newsrc file than
monkeys do about defecating from trees.

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!

Is there an alternative newsreader that maybe generates a
,newsrc for only those newsgroups that I actually read?
Or does away with it entirely? It's not so important to
me to avoid seeing postings I've already read, and that's
what .newsrc is for, mainly. I like trn for it's ability
to present subject lists in various sort orders.

-- 
==========   http://www.cais.net/whatnews/whatnews.html  =========
==========         Nine days of news at a glance         =========

Re: Like trn, but without .newsrc?
#28064
Author: E.
Date: Tue, 03 Dec 1996 00:00
30 lines
1724 bytes
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)

-- 
PGP Public Key Fingerprint: BE FC C5 FB 30 47 E5 5C  DC DF C3 C0 AD A5 27 17
Homepage: http://www.primenet.com/~fnargle/erisson/   PGP Key available here
"Every day is like burning paper."  --Slimebard
"You have *not* 'plonked' me!"  --Mario1

Re: Like trn, but without .newsrc?
#28069
Author: Alan Coopersmith
Date: Tue, 03 Dec 1996 00:00
18 lines
1316 bytes
packer@cais.cais.com (Charles Packer) writes in news.software.readers:
|Is there an alternative newsreader that maybe generates a
|,newsrc for only those newsgroups that I actually read?

trn can be configured to do this when you install it, if your newsserver
supports "an accurate active times" file (or something like that - I
forget the exact wording) - or you can just delete all the groups you
don't read and always start trn with the -q flag to tell it not to check
for new newsgroups.

-- 
________________________________________________________________________
Alan Coopersmith                        alanc@godzilla.EECS.Berkeley.EDU
University of California, Berkeley           or: alanc@CSUA.Berkeley.EDU       


Re: Like trn, but without .newsrc?
#28071
Author: 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

Solved, but...(was Re: Like trn, but without .newsrc?)
#28073
Author: Charles Packer
Date: Wed, 04 Dec 1996 00:00
19 lines
1349 bytes
Thanks for the suggestions. It turned out it was as simple as
creating a new .newsrc file using a text editor by copying 
from the existing file only the newsgroups I read. For some
reason the last time I tried this -- must have been three
or four years ago -- the whole file reappeared on exit from
trn, as I recall. This time it worked, though.

Now I have a new problem. Unless I save the big list somewhere,
how to I search on newsgroup names to match some pattern?
I'm used to doing a grep on .newsrc to find out if, for
instance, it's soc.culture.canada or soc.culture.canadian --
that sort of thing.

-- 
==========   http://www.cais.net/whatnews/whatnews.html  =========
==========         Nine days of news at a glance         =========

Re: Like trn, but without .newsrc?
#28078
Author: D. Metcalfe
Date: Wed, 04 Dec 1996 00:00
36 lines
1850 bytes
packer@cais.cais.com (Charles Packer) wrote:

>I've used trn for many years, but that was when I was using
>it on my employer's equipment that had loads of disk space
>and I didn't care any more about the .newsrc file than
>monkeys do about defecating from trees.

>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!

>Is there an alternative newsreader that maybe generates a
>,newsrc for only those newsgroups that I actually read?
>Or does away with it entirely? It's not so important to
>me to avoid seeing postings I've already read, and that's
>what .newsrc is for, mainly. I like trn for it's ability
>to present subject lists in various sort orders.

I use trn with one of my providers.  My newsrc contains only the 60 or
so active groups I read.   The entire list of more than 22,000 groups
is kept in the provider's own library.    Perhaps your provider can
help you configure your version of trn to work this way?  If every
user is duplicating the entire list, this is very wasteful of the
total system resources.
-- 
Dennis Metcalfe
dmet@flatoday.infi.net





Re: Solved, but...(was Re: Like trn, but without .newsrc?)
#28087
Author: Conrad Sabatier
Date: Wed, 04 Dec 1996 00:00
26 lines
1560 bytes
In article <5849s4$g3v@news2.cais.com>,
	packer@cais.cais.com (Charles Packer) writes:
> 
> Now I have a new problem. Unless I save the big list somewhere,
> how to I search on newsgroup names to match some pattern?
> I'm used to doing a grep on .newsrc to find out if, for
> instance, it's soc.culture.canada or soc.culture.canadian --
> that sort of thing.

No biggie.  If a group or pattern you're searching for is not already in
your .newsrc, trn will query the server for it.

Myself, I like to periodically trim down my .newsrc to only my subscribed
groups.  Makes for much smoother navigation between groups.

I also do a "sort .newsrc > temp; mv temp .newsrc" every so often to keep
the groups in order.

-- 
Conrad Sabatier                  | 
conrads@neosoft.com              |  Eschew obfuscation.
http://www.neosoft.com/~conrads  | 


Re: Like trn, but without .newsrc?
#28088
Author: Paul Hustava
Date: Wed, 04 Dec 1996 00:00
32 lines
1737 bytes
In article <5818su$e6c@news2.cais.com>, packer@cais.cais.com (Charles Packer) wrote:
>I've used trn for many years, but that was when I was using
>it on my employer's equipment that had loads of disk space
>and I didn't care any more about the .newsrc file than
>monkeys do about defecating from trees.
>
>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!
>
>Is there an alternative newsreader that maybe generates a
>,newsrc for only those newsgroups that I actually read?
>Or does away with it entirely? It's not so important to
>me to avoid seeing postings I've already read, and that's
>what .newsrc is for, mainly. I like trn for it's ability
>to present subject lists in various sort orders.
>

Would it be possible to download both .newsrc's to a local
machine, edit <read "chop">, and then re-upload it?
..Or would TRN complain and recreate a whole new .newsrc
when it sees that some groups are missing? 


-- 
      Paul Hustava
   hinshara@inlink.com

Re: Like trn, but without .newsrc?
#28096
Author: Eli The Bearded
Date: Wed, 04 Dec 1996 00:00
18 lines
1459 bytes
E. <erisson@kallisti.sw-tech.com> wrote:
>And I THINK (but am not enough of a trn expert to state definitively) that
>you can remove .oldnewsrc and it will get recreated.

The .oldnewsrc is a backup of the .newsrc which is created every time
you start trn. Often when things go horribly wrong it restores the
.newsrc from that backup.

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

Well, that's why you are practicing your perl, right? :^)

Elijah
------
what, me make an inside joke? never.

Re: Like trn, but without .newsrc?
#28106
Author: Steven King
Date: Thu, 05 Dec 1996 00:00
24 lines
1336 bytes
According to E. <erisson@kallisti.sw-tech.com>:

> 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

It's an interesting exercise in perl, but it's kind of like swatting flies
with a bazooka.  How 'bout: 

    grep -v '!' .newsrc.backup > .newsrc

Or even:

    grep ':' .newsrc.backup > .newsrc

-- 
---------------------------------------<Steven King, steve@pshrink.chi.il.us>--
"Gee, Brain, whaddaya wanna do tonight?"
"The same thing we do every night, Pinky.  Try to take over the world!"

Re: Solved, but...(was Re: Like trn, but without .newsrc?)
#28110
Author: Wayne Davison
Date: Thu, 05 Dec 1996 00:00
10 lines
908 bytes
According to Charles Packer <packer@cais.cais.com>:
> Now I have a new problem. Unless I save the big list somewhere,
> how to I search on newsgroup names to match some pattern?

That's the purpose of the 'a' command in trn (e.g. "a music").

..wayne..

Re: Solved, but...(was Re: Like trn, but without .newsrc?)
#28121
Author: Tad McClellan
Date: Thu, 05 Dec 1996 00:00
27 lines
1624 bytes
Charles Packer (packer@cais.cais.com) wrote:
: Thanks for the suggestions. It turned out it was as simple as
: creating a new .newsrc file using a text editor by copying 
: from the existing file only the newsgroups I read. For some
: reason the last time I tried this -- must have been three
: or four years ago -- the whole file reappeared on exit from
: trn, as I recall. This time it worked, though.

: Now I have a new problem. Unless I save the big list somewhere,
                                     ^^^^              ^^^^^^^^^

How about on your local hard disk drive, rather than on the
(space restricted) ISP drive?


: how to I search on newsgroup names to match some pattern?
: I'm used to doing a grep on .newsrc to find out if, for
: instance, it's soc.culture.canada or soc.culture.canadian --
: that sort of thing.


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

Re: Like trn, but without .newsrc?
#28167
Author: Larry W. Virden
Date: Sat, 07 Dec 1996 00:00
20 lines
1429 bytes

According to Steven King <steve@pshrink.chi.il.us>:
:> perl -e 'while (<>) {print unless /\!/}' < ~/.newsrc.backup > ~/.newsrc
:
:    grep -v '!' .newsrc.backup > .newsrc
:
:Or even:
:
:    grep ':' .newsrc.backup > .newsrc

Perhaps because grep on most systems is broken and when you do this results
in a broken .newsrc file.
-- 
:s Larry W. Virden                 INET: lvirden@cas.org
:s <URL:http://www.teraform.com/%7Elvirden/> <*> O- "We are all Kosh."
:s Unless explicitly stated to the contrary, nothing in this posting should
:s be construed as representing my employer's opinions.

Re: Like trn, but without .newsrc?
#28169
Author: Bob Boutwell
Date: Sat, 07 Dec 1996 00:00
33 lines
2154 bytes
In article <5818su$e6c@news2.cais.com>,
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!
>
>Is there an alternative newsreader that maybe generates a
>,newsrc for only those newsgroups that I actually read?
>Or does away with it entirely? It's not so important to
>me to avoid seeing postings I've already read, and that's
>what .newsrc is for, mainly. I like trn for it's ability
>to present subject lists in various sort orders.

I use trn only when I have to. (I prefer strn, which has more features.) 
However, I believe that strn's nuts and bolts are the same as trn's. I 
routinely edit my .newsrc, either by dowloading it, editing it as text, 
and uploading it, or (preferred method, unless I'm doing a lot of 
editing) just type 'pico .newsrc' or 'pico newsrc'. (I forget whether pico 
will work on files that begin with '.', so you may have to do a 'cp 
.newsrc newsrc' and then copy newsrc back to .newsrc when you are done. 
While in pico, I just hit ^K to get rid of all the newsgroups that I 
don't want to see any more, and then then type ^X when I'm done. Much 
easier than perl for this purpose.
-- 

Bob Boutwell    Jamaica Plain, MA        boutwell@netcom.com
                                         boutwell@shore.net

Re: Like trn, but without .newsrc?
#28179
Author: Larry W. Virden
Date: Sat, 07 Dec 1996 00:00
13 lines
1289 bytes

Solaris 2.4 is one such system.  Dec Ultrix and SunOS 4 are two older
that's sitting around here that also have problems.

And _I_ have gnu grep installed for that very reason.
-- 
:s Larry W. Virden                 INET: lvirden@cas.org
:s <URL:http://www.teraform.com/%7Elvirden/> <*> O- "We are all Kosh."
:s Unless explicitly stated to the contrary, nothing in this posting should
:s be construed as representing my employer's opinions.

Re: Like trn, but without .newsrc?
#28180
Author: Bruce A. Templeton
Date: Sat, 07 Dec 1996 00:00
29 lines
1577 bytes
In article <58adqp$jo2@srv13s4.cas.org>,
Larry W. Virden <lvirden@cas.org> wrote:
>
>According to Steven King <steve@pshrink.chi.il.us>:
>:> perl -e 'while (<>) {print unless /\!/}' < ~/.newsrc.backup > ~/.newsrc
>:
>:    grep -v '!' .newsrc.backup > .newsrc
>:
>:Or even:
>:
>:    grep ':' .newsrc.backup > .newsrc
>
>Perhaps because grep on most systems is broken and when you do this results
>in a broken .newsrc file.

Yeah right.  What systems (and what greps) are you talking about?  Any
system that can't handle such a strenuous grep task can't be considered a
working  system.  If you honestly have a grep that can't handle this, you
had better install GNU grep for sanity's sake.

ftp://prep.ai.mit.edu/pub/gnu/grep-2.0.tar.gz

-Bruce
-- 
  Bruce A. Templeton                      brucet@engr.sgi.com
  Silicon Graphics Inc.                   (415) 933-3872

Re: Like trn, but without .newsrc?
#28217
Author: Steven King
Date: Sun, 08 Dec 1996 00:00
15 lines
1186 bytes
According to Larry W. Virden <lvirden@cas.org>:

> Solaris 2.4 is one such system.  Dec Ultrix and SunOS 4 are two older
> that's sitting around here that also have problems.

So, what is the problem that these broken greps have?  I imagine it's
somehow related to extremely long lines...?

-- 
---------------------------------------<Steven King, steve@pshrink.chi.il.us>--
"Gee, Brain, whaddaya wanna do tonight?"
"The same thing we do every night, Pinky.  Try to take over the world!"

Re: Like trn, but without .newsrc?
#28440
Author: Larry W. Virden
Date: Mon, 16 Dec 1996 00:00
25 lines
1795 bytes

According to Steven King <steve@pshrink.chi.il.us>:
:According to Larry W. Virden <lvirden@cas.org>:
:
:> Solaris 2.4 is one such system.  Dec Ultrix and SunOS 4 are two older
:> that's sitting around here that also have problems.
:
:So, what is the problem that these broken greps have?  I imagine it's
:somehow related to extremely long lines...?

Lines greater than 1000 characters tend to cause these broken greps 
problems.  Unfortunately, the behavior isn't consistent.  Sometimes
it is truncated lines, sometimes it is split lines (1 newsgroup line
becomes two or more lines, the second of which is just article numbers,
etc.).

Using perl or gnu awk does better.
-- 
:s Larry W. Virden                 INET: lvirden@cas.org
:s <URL:http://www.teraform.com/%7Elvirden/> <*> O- "We are all Kosh."
:s Unless explicitly stated to the contrary, nothing in this posting should
:s be construed as representing my employer's opinions.

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