Date: Thu, 22 Oct 1998 18:02:26 -0700 (PDT) From: Robert Clark <robertc@rio.pii.com> To: "Jason C. Wells" <jcwells@u.washington.edu> Cc: FreeBSD-questions <freebsd-questions@FreeBSD.ORG> Subject: Re: Getting 'find' to stop finding Message-ID: <Pine.BSF.3.96.981022180206.16070B-100000@rio.pii.com> In-Reply-To: <Pine.BSF.4.05.9810192148250.20681-100000@s8-37-26.student.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
How about 'locate' ? [RC] On Mon, 19 Oct 1998, Jason C. Wells wrote: > I am writing a little shell script. I would like 'find' to stop searching > after it finds it's first match. I don't see any incantation in 'man find' > that can do this. > > Specifically, I am iterating on this command several-teen times and it is > taking WAAAY too long. :) > > find /usr/ports -name SomeInstalledPort -type d > cp -R /usr/ports/SomeInstalledPort SomeVeryCoolDir > > What can I use to do the same function as 'find' that will stop searching > after a match? > > Catchya Later, | UW Mechanical Engineering > Jason Wells | http://weber.u.washington.edu/~jcwells/ > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.981022180206.16070B-100000>