|
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 i80wordThis may be your problem, but I can't say for sure. This is the correctway 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
[Prev in Thread] | Current Thread | [Next in Thread] |