Re: find question
From: Ed Morton (mortonAVOIDINGSPAM_at_Lucent.com)
Date: 10/24/03
- Next message: Jens-Uwe Spiering: "Desktop Kornshell for CDE scrolledText Problem"
- Previous message: Chris Mattern: "Re: find question"
- In reply to: Barry Margolin: "Re: find question"
- Next in thread: Kevin Rodgers: "Re: find question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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:
>><snip>
>>
>>>For example, say I have
>>>
>>>./slestguis/@speplots/@ParameterGradient/setmenus.m
>>>./slestguis/@speplots/@ParameterGradient/ParameterGradient.m
>>>./slestim/@estimator/CVS/Entries.bak
>>>./slestim/@estimator/@fmincon/CVS/Entries.Static
>>>./slestim/@estimator/@fminsearch/CVS/Entries.Static
>>>./slestim/@estimator/@lsqnonlin/CVS/Entries.Static
>>>
>>>
>>>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-(.
Ed.
- Next message: Jens-Uwe Spiering: "Desktop Kornshell for CDE scrolledText Problem"
- Previous message: Chris Mattern: "Re: find question"
- In reply to: Barry Margolin: "Re: find question"
- Next in thread: Kevin Rodgers: "Re: find question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]