Re: find question
From: Ed Morton (mortonAVOIDINGSPAM_at_Lucent.com)
Date: Fri, 24 Oct 2003 16:49:49 -0500
On 10/24/2003 4:31 PM, Barry Margolin wrote:
> In article <3F999881.5050509@Lucent.com>,
> Ed Morton <mortonAVOIDINGSPAM@Lucent.com> wrote:
>>On 10/24/2003 4:02 PM, Bora wrote:
>>>For example, say I have
>>>I need a command that will only return "all the writable files that does not
>>>have CVS in their name:
>>No, you don't. You need a command that will only return "all the writable files
>>that does not have CVS in their PATH" and the simplest way to do that is to do:
>>find . -name "*.*" -perm +222 | grep -v "/CVS/"
> I think the version with -prune that I posted is better because it doesn't
> waste time scanning the CVS directories, just to grep them away at the
> end. It never descends into them at all.
Yup, I agree. Wish I'd seen that other thread before answering this one 8-(.