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: Mike Frysinger
Subject: Re: grep remove "no such file or directory"
Date: Wed, 6 May 2009 10:14:34 -0400
User-agent: KMail/1.11.2 (Linux/2.6.29.2; KDE/4.2.2; x86_64; ; )

On Wednesday 06 May 2009 08:14:03 cseguino wrote:
>     $ 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

you arent handling files with whitespace properly.  use "-print0" with find 
and "-0" with xargs.
-mike

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


reply via email to

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