Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

grep on stderr 1

Status
Not open for further replies.

columb

IS-IT--Management
Feb 5, 2004
1,231
EU
I'm running an application which is very chatty with this output going to stderr. The problem is that I want to lose the inconsequential but keep the important as real errors are getting lost amoungst the information lines. What I have now is
Code:
command > output.log 2> output.err
grep -v INFO output.err
but that means I don't see the errors until it's all over which can be critical in long running processes.

Any ideas?

Ceci n'est pas une signature
Columb Healy
 
Typed, untested:
command 2>&1 >output.log | grep -v INFO

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks PHV, you're on the money as usual!

Ceci n'est pas une signature
Columb Healy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top