[SLL] find insanity
Russell Evans
russell-evans at qwest.net
Thu May 26 17:56:55 PDT 2005
On Thu, 26 May 2005 17:28:39 -0700 (PDT)
"Andrew Sweger" <andrew at sweger.net> wrote:
> How do you tell find to stop digging once it's found something? For
> example, 'go through all the directories in ~/projects and report all
> the directories named ".svn" or "CVS" that are not subdirectories of
> any similarly named directories.' The answer would not appear to be,
>
> find ~/projects -name ".svn" -print -prune
>
Could you try find ~/projects -type d -name ".svn" -print -prune
I'm not sure if it does what you want but my reading of you post makes
me think it is.
Thank you
Russell
More information about the linux-list
mailing list