From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <7fe6ba52bb6362ece115dcddac6eab0b@mteege.de> From: Matthias Teege To: 9fans@cse.psu.edu MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] sam -d reading from stdin? Date: Sat, 31 Jan 2004 12:40:42 +0000 Topicbox-Message-UUID: c8fd616c-eacc-11e9-9e20-41e7f4b1d025 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