From owner-freebsd-questions Mon Oct 19 21:59:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA05935 for freebsd-questions-outgoing; Mon, 19 Oct 1998 21:59:21 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from jason01.u.washington.edu (jason01.u.washington.edu [140.142.70.24]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA05930 for ; Mon, 19 Oct 1998 21:59:20 -0700 (PDT) (envelope-from jcwells@u.washington.edu) Received: from saul2.u.washington.edu (root@saul2.u.washington.edu [140.142.56.21]) by jason01.u.washington.edu (8.8.4+UW97.07/8.8.4+UW98.06) with ESMTP id VAA37010 for ; Mon, 19 Oct 1998 21:58:52 -0700 Received: from S8-37-26.student.washington.edu (S8-37-26.student.washington.edu [128.208.37.26]) by saul2.u.washington.edu (8.8.4+UW97.07/8.8.4+UW98.06) with ESMTP id VAA31132 for ; Mon, 19 Oct 1998 21:58:51 -0700 (PDT) Date: Mon, 19 Oct 1998 21:58:40 -0700 (PDT) From: "Jason C. Wells" X-Sender: jason@s8-37-26.student.washington.edu Reply-To: "Jason C. Wells" To: FreeBSD-questions Subject: Getting 'find' to stop finding Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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