bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: grep recursive problem


From: Chuck Swiger
Subject: Re: grep recursive problem
Date: Thu, 19 Oct 2006 15:01:19 -0700

On Oct 19, 2006, at 1:40 PM, Dan Hipschman wrote:
If your filenames have spaces in them xargs will get confused.  Try

    find . -name "*.php" -print0 | xargs -0 grep -i i80word

This may be your problem, but I can't say for sure. This is the correct
way to do what you want and it should work.  Hope that helps :-)

Yes, this is good advice. I have find aliased to "noglob find" so that it doesn't expand wildcards, but regardless the use of -print0 is admirable if the filename paths contain whitespace...

--
-Chuck





reply via email to

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