9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] sam -d reading from stdin?
@ 2004-01-31 12:40 Matthias Teege
  2004-01-31 13:07 ` David Presotto
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Matthias Teege @ 2004-01-31 12:40 UTC (permalink / raw)
  To: 9fans

Moin,

I use the following in pipefrom to get the
content of the Reply-To header from an
outgoing Email.

cat > $TMP
replyto=`{echo ', x/(.+\n)+/ g/^[Rr]eply-[Tt]o:.*/ p' | sam -d $TMP >[2] /dev/null | tr A-Z a-z | grep reply-to | sed 's/reply-to: *//'}

Is there any way to avoid the creation of
a temporary file? Can I read from stdin
with sam -d?

Second question. Is there any way to make
g/^[Rr]eply-[Tt]o:.*/ case insensitive
without using [Rr] constructs?

Matthias


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-02-01 14:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-31 12:40 [9fans] sam -d reading from stdin? Matthias Teege
2004-01-31 13:07 ` David Presotto
2004-02-01  0:18 ` Geoff Collyer
2004-02-01  0:30   ` Geoff Collyer
2004-02-01  3:31 ` boyd, rounin
2004-02-01 13:51   ` Matthias Teege
2004-02-01 14:03     ` boyd, rounin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).