bug-bash
[Top][All Lists]
Advanced

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

Re: grep remove "no such file or directory"


From: Roman Rakus
Subject: Re: grep remove "no such file or directory"
Date: Wed, 06 May 2009 16:03:51 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090324 Fedora/3.0-2.1.beta2.fc11 Thunderbird/3.0b2

On 05/06/2009 02:14 PM, cseguino wrote:
Hello,

I'm executing the following command using cygwin :


     $ find . | xargs grep -v "No such file or directory" | grep "StateRB"
     grep:
./Tiger/codebase/netmarkets/jsp/ext/eurocopter/tiger/change/.svn/text-base/Copy:
No such file or directory
     grep: of: No such file or directory
     grep: createLink.jsp.svn-base: No such file or directory
     grep:
./Tiger/codebase/netmarkets/jsp/ext/eurocopter/tiger/change/.svn/text-base/Copy:
No such file or directory
     grep: of: No such file or directory
     grep: relatedECP.jsp.svn-base: No such file or directory
     grep: ./Tiger/codebase/netmarkets/jsp/ext/eurocopter/tiger/change/Copy:
No such file or directory
     grep: of: No such file or directory
     grep: createLink.jsp: No such file or directory
     grep: ./Tiger/codebase/netmarkets/jsp/ext/eurocopter/tiger/change/Copy:
No such file or directory
     grep: of: No such file or directory



I would like not to display the "No such file or directory" output. Can
anyone help me ?

Cheers,

Christophe
This message is error message and error messages are sent to stderr. Usualy stderr are same as stdout. But you can redirect stderr with `2>'.
find . 2>/dev/null
This will not display any error messages from `find .'
RR




reply via email to

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