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

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

Piping stderr


From: Gisle Vanem
Subject: Piping stderr
Date: Wed, 25 Aug 2004 12:19:48 +0200

In a GNU make 3.79.1 command I need to pipe stderr
from gcc to grep. Something like:

h_files:
  $(CC) -MMD -MM -H $(CFLAGS) $(FILES) |& grep -iv "MingW32"

to produce a tree of headers involved in a compilation. But I
want to 'grep' away the ".. g:/MingW/" lines. 

The piping doesn't work. What would be the prober syntax to
pipe only stderr? Or both stdout and stderr would be okay too.

I'm using MSys' make and sh under MingW.

--gv



reply via email to

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