[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Finding shallowest instance of $foo in a given structure
From: |
Bob Proulx |
Subject: |
Re: Finding shallowest instance of $foo in a given structure |
Date: |
Wed, 19 Mar 2008 13:58:28 -0600 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
RB wrote:
> > Using the above test case the following seems to work.
> >
> > find srcdir \( -exec test -d {}/CVS \; -o -exec test -d {}/.svn \; -o
> > -exec test -d {}/.git \; \) -print -prune | sort
>
> That works for me as well; I knew I had to be a few sandwiches short!
> It also has the added benefit of being able to embed update statements
> per VCS type, so I can cron this nicely and forget about it. Thanks!
I am often in need of a hint. Glad that I was able to help.
Bob