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