Subject: Re: Meta package for pkgsrc developer tools
To: NetBSD Packages Technical Discussion List <tech-pkg@NetBSD.org>
From: David Laight <david@l8s.co.uk>
List: tech-pkg
Date: 08/11/2006 18:26:55
On Mon, Aug 07, 2006 at 07:42:21PM -0400, Greg A. Woods wrote:
...pruned...
> 19:20 [59] $ time sh -c 'echo */*/work > /dev/null'
> 0.04s real 0.01s user 0.02s system
> 19:21 [61] $ time find . -name work -print > /dev/null
> 37.76s real 0.37s user 2.17s system
> 19:23 [63] $ time find . \( -name CVS -prune \) -o \( -name work -print \) > /dev/null
> 25.98s real 0.21s user 1.10s system
The one that you want is:
$ time find . -name CVS -prune -o -name work -print -prune
pruning after printing stops the descent into the 'work' directories.
David
--
David Laight: david@l8s.co.uk