Article View: news.software.readers
Article #28106Re: Like trn, but without .newsrc?
From: Steven King
Date: Thu, 05 Dec 1996 00:00
Date: Thu, 05 Dec 1996 00:00
24 lines
1336 bytes
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!"
Technical Details
Message-ID:
<585jlp$hi4@pshrink.chi.il.us>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-mailReferences:
<5818su$e6c@news2.cais.com> <slrn5a9j0q.18d.erisson@kallisti.sw-tech.com>Show Full Headers
Complete Article Headers
Message-ID: <585jlp$hi4@pshrink.chi.il.us> Subject: Re: Like trn, but without .newsrc? Date: Thu, 05 Dec 1996 00:00:00 +0000 From: "Steven King" <steve@pshrink.chi.il.us> 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: 202468678 Organization: General Technics Newsgroups: news.software.readers X-newsposter: Pnews 4.0-test46 (31 Oct 96)