Article View: news.software.readers
Article #1297How to implement this macro in rn..
From: Sridhar Venkataraman
Date: Fri, 06 Mar 1992 15:45
Date: Fri, 06 Mar 1992 15:45
28 lines
1686 bytes
1686 bytes
[Since I was not sure it was TCSH's behavior or the shell behavior
or rn's that inhibited my use of the macro I am crossposting to the 3
newsgroups. If you intend to followup, please note that I have marked
the Followup-To line to poster]
Shell: tcsh
Macro in: rn
I am wishing to use the macro of the form:
d |sed -n '/%"Print From: "/,/^[ ]*$/p'^j
^Space ^Tab
I just want to detect a pattern and print from that till a blank line.
It is failing somewhere and seems to print the entire article. From
what rn outputs on screen it seems that it interprets it as
|sed -n '/%"Print From: "/,/ ]*$/p'^j
interpreting ^[ not as a start of a r.e.
Any solution much appreciated. (sh,csh,tcsh,perl,awk,sed)
Thanks to all the folks in advance.
[Please check Newsgroups: and Followup-To: lines]
Sridhar.
Technical Details
Message-ID:
<1992Mar6.154513.29239@ennews.eas.asu.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.shell.mbox.zip!sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!asuvax!ennews!enuxhb.eas.asu.edu!sridharShow Full Headers
Complete Article Headers
Message-ID: <1992Mar6.154513.29239@ennews.eas.asu.edu> Subject: How to implement this macro in rn.. Date: Fri, 06 Mar 1992 15:45:13 +0000 From: sridhar@enuxhb.eas.asu.edu (Sridhar Venkataraman) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.shell.mbox.zip!sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!asuvax!ennews!enuxhb.eas.asu.edu!sridhar Newsgroups: comp.unix.shell,comp.unix.questions,news.software.readers Sender: news@ennews.eas.asu.edu (USENET News System) Reply-To: sridhar@enuxhb.eas.asu.edu (Sridhar Venkataraman) Followup-To: poster Organization: Arizona State University, Tempe AZ Lines: 27