🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by David Sewell Mon, 04 Nov 1996 00:00
Odd trn save-to-pipe behavior
#27447
Author: David Sewell
Date: Mon, 04 Nov 1996 00:00
21 lines
1240 bytes
I'm using trn 3.6.  Suppose I'm reading an article that quotes
excessively, and I want to filter out all the quoted lines.
An obvious solution would be to use a command like

     |grep -v '^>'

However, this turns out not to work properly unless the start-of-line
anchor is escaped like so:

     |grep -v '\^>'

(Ditto for any other command like "sed" using the ^ anchor.)

Is this a bug in trn's command parsing?  
-- 
David Sewell  *  dsew@packrat.aml.arizona.edu   | "Where the earth is dry, the
Dep't of Geosciences, Univ. of Arizona          |  soul is wisest and best."
 WWW: http://packrat.aml.arizona.edu/~dsew/     |           --Heraclitus

Re: Odd trn save-to-pipe behavior
#27500
Author: David Sewell
Date: Wed, 06 Nov 1996 00:00
21 lines
1519 bytes
In article <55qhi3$887@sloth.swcp.com>,
John Red-Horse <jrredho@swcp.com> wrote:
[re: my question on filtering out quoted lines]
>Actually, a more palatable solution is to use HIDELINE.  From the trn man 
>page:

Thanks for the pointer.  It's a nice feature, though it assumes one's
default wish is not to see quoted lines; usually I'd prefer to see the
full article and then invoke a filter if it's too heavy on quotation.

Someone sent me e-mail to point out that trn uses '^' as a metacharacter
in substitution strings to indicate that the next character should
be capitalized, answering my original question.  

-- 
David Sewell  *  dsew@packrat.aml.arizona.edu   | "Where the earth is dry, the
Dep't of Geosciences, Univ. of Arizona          |  soul is wisest and best."
 WWW: http://packrat.aml.arizona.edu/~dsew/     |           --Heraclitus

Re: Odd trn save-to-pipe behavior
#27509
Author: John Red-Horse
Date: Wed, 06 Nov 1996 00:00
31 lines
1582 bytes
In article <55mkbm$hlb@packrat.aml.arizona.edu>, 
dsew@packrat.aml.arizona.edu wrote:
>I'm using trn 3.6.  Suppose I'm reading an article that quotes
>excessively, and I want to filter out all the quoted lines.
>An obvious solution would be to use a command like
>
>     |grep -v '^>'
>
>

Actually, a more palatable solution is to use HIDELINE.  From the trn man 
page:

     HIDELINE
             If defined,  contains  a  regular  expression  which
             matches  article  lines  to be hidden, in order, for
             instance, to suppress  quoted  material.   A  recom-
             mended  string  for  this  purpose is "^>...", which
             doesn't hide lines with only '>', to give some indi-
             cation  that  quoted  material is being skipped.  If
             you want to hide more than one pattern, you can  use
             "|"  to separate the alternatives.  You can view the
             hidden lines by restarting the article with the  'v'
             command.


cheers,
john

Odd trn save-to-pipe behavior
#27822
Author: Michael Craft
Date: Mon, 18 Nov 1996 00:00
21 lines
1120 bytes
David Sewell <dsew@packrat.aml.arizona.edu> in <55mkbm$hlb@packrat.aml.arizona.edu> on news.software.readers wrote:

	Just hit tab!

> I'm using trn 3.6.  Suppose I'm reading an article that quotes
> excessively, and I want to filter out all the quoted lines.
> An obvious solution would be to use a command like
> 
>      |grep -v '^>'
> 
> However, this turns out not to work properly unless the start-of-line
> anchor is escaped like so:
> 
>      |grep -v '\^>'
> 
> (Ditto for any other command like "sed" using the ^ anchor.)
> 
> Is this a bug in trn's command parsing?  

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