🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #226409

Re: List of groups

#226409
From: Peter J Ross
Date: Sun, 28 Sep 2008 16:59
29 lines
2591 bytes
In news.software.readers on Fri, 26 Sep 2008 02:11:36 +0000 (UTC), Bob
Cortopassi <bobernet@nsa.invalid> wrote:

> On 2008-09-26, Sqwertz <swertz@cluemail.compost> wrote:
>>
>> $ cat listofnewgroups | sed 's/$/:' >> ~/.jnewsrc
>>
>> ..outghta do the trick.  My sed is a pretty rusty.  Somebody will
>> correct me if I'm wrong (this is Usenet after all ;-)
>
> Close, but you do get a "useless use of cat" award.  :-)
>
> $ sed 's/$/:/' listofgroups >> ~/.jnewsrc
>
> Also note that I added a trailing / to your expression.  sed requires
> that to properly terminate the expression.

Thanks to both of you. There are at least three problems:

1. What if the groups already exist in the newsrc?
2. What if the groups don't exist on the news server?
3. What if sed isn't installed? (e.g. slrn on Windows)


-- 
PJR :-)
slrn newsreader (v0.9.9): http://slrn.sourceforge.net/
extra slrn documentation: http://slrn-doc.sourceforge.net/
newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
Technical Details
Message-ID: <slrngdvduk.ena.pjr@pjr.motzarella.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!news.motzarella.org!motzarella.org!not-for-mail
References: <slrngdgdbv.uh3.john@localhost.localdomain> <slrngdi8s2.f8i.pjr@pjr.motzarella.org> <gbbjr2$f45$1@registered.motzarella.org> <slrngdinvi.f8i.pjr@pjr.motzarella.org> <230908.194601nsr92.353@sqwertz.com> <gbfdn0$hts$1@registered.motzarella.org> <slrngdnrbp.81n.pjr@pjr.motzarella.org> <250908.200254nsr93.805@sqwertz.com> <gbhgco$adc$1@registered.motzarella.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrngdvduk.ena.pjr@pjr.motzarella.org>
Subject: Re: List of groups
Date: Sun, 28 Sep 2008 17:59:00 +0100
From: Peter J Ross <pjr@example.invalid>
References: <slrngdgdbv.uh3.john@localhost.localdomain> <slrngdi8s2.f8i.pjr@pjr.motzarella.org> <gbbjr2$f45$1@registered.motzarella.org> <slrngdinvi.f8i.pjr@pjr.motzarella.org> <230908.194601nsr92.353@sqwertz.com> <gbfdn0$hts$1@registered.motzarella.org> <slrngdnrbp.81n.pjr@pjr.motzarella.org> <250908.200254nsr93.805@sqwertz.com> <gbhgco$adc$1@registered.motzarella.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!news.motzarella.org!motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: none
Lines: 29
Reply-To: Peter J Ross <peadar.ruadh@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: feeder.motzarella.org
 U2FsdGVkX181MRPS8KkBAP+Q3VKa2gZDqrvRnGSNYr8C6RHV78Dc+0tf2EJ7X5L4rxyZVjEHPriQZ7LzV1bXB7bHA7KhmLuLyoThk2Vep3fQIrIJJnIyey368ocoBN5s/WeGVQqW5DE=
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Sun, 28 Sep 2008 17:03:04 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX18R7Lxb0DxyOo00++/rn4tV
Cancel-Lock: sha1:aQRvaizZvOOgNgE8NQudNYf6k6U=
User-Agent: slrn/0.9.9p1/mm/co/un (Debian Testing)