On Wednesday 06 May 2009 10:03:51 Roman Rakus wrote:
> On 05/06/2009 02:14 PM, cseguino wrote:
> >      $ find . | xargs grep -v "No such file or directory" | grep
> > "StateRB" grep:
> > ./Tiger/codebase/netmarkets/jsp/ext/eurocopter/tiger/change/.svn/text-bas
> >e/Copy: No such file or directory
> >
> > I would like not to display the "No such file or directory" output. Can
> > anyone help me ?
>
> 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 .'

the error message is coming from `grep`, not `find`, and the former has a 
simple option to suppress errors: -s
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to