Re: [Hampshire] Shell foo challenge

Top Page

Reply to this message
Author: Adrian Bridgett
Date:  
To: Dr Adam J Trickett
CC: Hants LUG
Subject: Re: [Hampshire] Shell foo challenge
On Wed, Nov 21, 2007 at 09:51:40 +0000 (+0000), Dr Adam J Trickett wrote:
> (command | tee -a scratch | grep foo) 3>&1 1>&2 2>&3 | tee -a scratch


I'd have been worried that the tee's would conflict with each other
(so I was trying to join the two FDs back together).

I was trying to keep stdout to stdout and stderr to stderr (though you
didn't say that was required so I wasn't trying too hard!)

Adrian
--
Email: adrian@??? -*- GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution -*- www.debian.org