🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
4 messages
4 total messages Started by Todd L. Brooks Wed, 28 Jul 1993 17:18
automatically subscribing
#4577
Author: Todd L. Brooks
Date: Wed, 28 Jul 1993 17:18
5 lines
953 bytes
Is there a way to automatically subscribe to all the news groups with a
certain prefix (such as all the comp.sys groups) without individually
subscribing to all of them?

Thankyou.  Please email
Re: automatically subscribing
#4575
Author: Nancy McGough
Date: Wed, 28 Jul 1993 19:19
39 lines
2365 bytes
tlb@carson.u.washington.edu (Todd L. Brooks) writes:
>Is there a way to automatically subscribe to all the news groups with a
>certain prefix (such as all the comp.sys groups) without individually
>subscribing to all of them?

Here's one way -- I'd love to hear of an easier way...

1] To go to your home directory, type:  cd
2] To add the newsgroups that start with comp.sys, that you aren't
   already subscribed to, to the end of your .newsrc, type:

     nngrep -u ^comp.sys >> .newsrc

 3] Edit your .newsrc so that all these newly added newsgroups end
    with a colon.  In vi here's how you can do this:

    a] Type:  vi .newsrc
    b] Position the cursor at the first of the uncoloned ^comp.sys
       groups.  (You can use G to get to the bottom and CTRL+b to
       page back until you see the top of this list.)
    c] To put a colon at the end of each of these, press ESCAPE and
       type:
         :.,$s/$/:/
       This means from here (.) to the end (,$) substitue (s)
       end of line ($) with colon (:).


Now you can specify where in your sequence you'd like to see these
by putting the following in your presentation sequence.

  comp.sys.


As I've mentioned before I think it would be a nice feature addition
if you could just edit your sequence and have nn automatically subscribe
you to those newsgroups.

Hope this helps.  Does anyone have a better way -- I'd love to hear it.
Nancy
Re: automatically subscribing
#4576
Author: Nancy McGough
Date: Wed, 28 Jul 1993 19:42
41 lines
2395 bytes
tlb@carson.u.washington.edu (Todd L. Brooks) writes:
>Is there a way to automatically subscribe to all the news groups with a
>certain prefix (such as all the comp.sys groups) without individually
>subscribing to all of them?

Here's one way -- I'd love to hear of an easier way...

1] To go to your home directory, type:  cd
2] Backup your .newsrc:  cp .newsrc .newsrc.28Jul93
3] To append the newsgroups that start with comp.sys, that you aren't 
   already subscribed to, to the end of your .newsrc, type:

     nngrep -u ^comp.sys >> .newsrc

 4] Edit your .newsrc so that all these newly added newsgroups end
    with a colon.  In vi here's how you can do this:

    a] Type:  vi .newsrc
    b] Position the cursor at the first of the uncoloned ^comp.sys
       groups.  (You can use G to get to the bottom and CTRL+b to
       page back until you see the top of this list.)
    c] To put a colon at the end of each of these, press ESCAPE and 
       type:
         :.,$s/$/:/
       This means from here (.) to the end (,$) substitue (s)
       end of line ($) with colon (:).


Now you can specify where in your sequence you'd like to see these
by putting the following in your presentation sequence in 
your ~/.nn/init file.

  comp.sys.


As I've mentioned before I think it would be a nice feature addition
if you could just edit your sequence and have nn automatically subscribe
you to those newsgroups.

Hope this helps.  Does anyone have a better way -- I'd love to hear it.
Nancy
Re: automatically subscribing
#4578
Author: Jeff Sandler
Date: Wed, 28 Jul 1993 20:47
24 lines
1558 bytes
nancym@stein2.u.washington.edu (Nancy McGough) writes:

>tlb@carson.u.washington.edu (Todd L. Brooks) writes:
>>Is there a way to automatically subscribe to all the news groups with a
>>certain prefix (such as all the comp.sys groups) without individually
>>subscribing to all of them?

>Here's one way -- I'd love to hear of an easier way...

How about this?

sed -e 's/^\(comp\.sys\.[^:!]*\)[:!]/\1:/' .newsrc > .newstemp
<check .newstemp to make sure it looks good>
mv .newstemp .newsrc

Note that if you're in csh, or some other shells, you need to escape the
!..so you end up with
sed -e 's/^\(comp\.sys\.[^:\!]*\)[:\!]/\1:/' .newsrc > .newstemp


-- 
Jeff Sandler                       Florida State, C/O '95
jsandler@encore.com will only be active until August 13.  My new
address is sandler@xi.cs.fsu.edu.
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