[Top][All Lists]

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

Re: grep remove "no such file or directory"

From: Mike Frysinger
Subject: Re: grep remove "no such file or directory"
Date: Wed, 6 May 2009 10:16:02 -0400
User-agent: KMail/1.11.2 (Linux/; KDE/4.2.2; x86_64; ; )

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

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

reply via email to

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