From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: David Presotto To: 9fans@cse.psu.edu Subject: Re: [9fans] sam -d reading from stdin? In-Reply-To: <7fe6ba52bb6362ece115dcddac6eab0b@mteege.de> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Sat, 31 Jan 2004 08:07:00 -0500 Topicbox-Message-UUID: c96c522a-eacc-11e9-9e20-41e7f4b1d025 How about tee /fd/2 |[2] {tr A-Z a-z | sed -n 's/^reply-to: *//p /^$/q'} >/env/x Well, its a temp file but just the environmnt one you had anyways. You can't use $x later in the script because the shell won't have noticed that you changed an env variable... The /^$/q just gets you out when the message starts so you don't snarf any body messages