From owner-freebsd-questions Sat Aug 16 23:11:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA09610 for questions-outgoing; Sat, 16 Aug 1997 23:11:54 -0700 (PDT) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA09605 for ; Sat, 16 Aug 1997 23:11:52 -0700 (PDT) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id XAA07656; Sat, 16 Aug 1997 23:13:18 -0700 (PDT) Message-Id: <199708170613.XAA07656@implode.root.com> To: Greg Lehey cc: Online Impressions , questions@FreeBSD.ORG Subject: Re: How to find a file.. In-reply-to: Your message of "Sun, 17 Aug 1997 15:11:40 +0930." <19970817151140.37942@lemis.com> From: David Greenman Reply-To: dg@root.com Date: Sat, 16 Aug 1997 23:13:17 -0700 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >On Sat, Aug 16, 1997 at 10:22:37PM -0700, Online Impressions wrote: >> >> Is there a command that will tell me if a file exists and if so where it >> can be found? > >Yes. > >> I have been using "ls -R |grep filename" to determine if a file >> exists but the trouble is if it does this command fails to tell me >> where it is. In addition to "locate", you can also do the brute-force thing: find . -name "filename" "filename" can also contain wildcards. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project