help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Piping stderr


From: Paul Jarc
Subject: Re: Piping stderr
Date: Wed, 25 Aug 2004 12:09:36 -0400
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

"Gisle Vanem" <giva@users.sourceforge.net> wrote:
> The piping doesn't work. What would be the prober syntax to
> pipe only stderr? Or both stdout and stderr would be okay too.

Both:
  $(CC) -MMD -MM -H $(CFLAGS) $(FILES) 2>&1 | grep -iv "MingW32"

Just stderr:
  { $(CC) -MMD -MM -H $(CFLAGS) $(FILES) 2>&1 1>&3 | grep -iv "MingW32"; } 3>&1


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]