in reply to Reading only STDERR

I've used a trick like the following in a shell to strip stdout from stderr:
( command > log.out ) >& log.err
I believe that the parens result in a new sub-shell being created such that stdout is redirected by the time stderr is redirecdted to log.err.

Replies are listed 'Best First'.
Re^2: Reading only STDERR
by nomis80 (Sexton) on Apr 06, 2005 at 13:47 UTC
    Thanks for your reply, but that's specifically what I don't want. If I first process STDERR and then print out what is in log.out, STDERR and STDOUT will be deinterlaced. That's not what I want. They need to stay (reasonably) interlaced.