[vox-tech] quick, stupid bash question
Peter Jay Salzman
vox-tech@lists.lugod.org
Wed, 29 May 2002 11:29:29 -0700
begin nbs <nbs@sonic.net>
> On Wed, May 29, 2002 at 11:11:19AM -0700, Peter Jay Salzman wrote:
> > ok, i should know this...
> >
> >
> > this redirects stderr to stdout and pipes the whole thing to grep:
> >
> > strace lsof 2>&1 | grep System
>
> Try something like:
>
> strace lsof 2>&1 1> /dev/null | grep
ok, haven't tried this, but this looks to me like:
put stderr into stdout
redirect stdout (and therefore stderr) into /dev/null
pipe stdout (which should be null) to grep.
yet it works. where is my thinking going wrong?
pete