[vox-tech] quick, stupid bash question

Shawn P. Neugebauer vox-tech@lists.lugod.org
Wed, 29 May 2002 21:11:55 -0700


On Wednesday 29 May 2002 11:11 am, you wrote:
> this redirects stderr to stdout and pipes the whole thing to grep:
>
>    strace lsof 2>&1 | grep System
>
> how do i grep *just* stderr and not both stderr and stdout?

to summarize:
  strace lsof > /dev/null | grep System
works fine in my tests.  (Mike just showed this.)  doesn't seem
as complicated as Mike's general analysis first led me to believe
(as useful as the analysis is).

shawn.