Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Aug 1997 23:13:17 -0700
From:      David Greenman <dg@root.com>
To:        Greg Lehey <grog@lemis.com>
Cc:        Online Impressions <oli@olim.com>, questions@FreeBSD.ORG
Subject:   Re: How to find a file.. 
Message-ID:  <199708170613.XAA07656@implode.root.com>
In-Reply-To: Your message of "Sun, 17 Aug 1997 15:11:40 %2B0930." <19970817151140.37942@lemis.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708170613.XAA07656>