Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message Subject: RE: locate: /usr/var/locatedb: No such file or directory Date: Mon, 29 Jul 2002 10:45:57 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Message-ID: <714864C61F42474DA303505B01544D1501465136@hermes.scopus.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Alex Vinokur" To: "Michael A Chase" , "Cygwin Mailing List" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g6T7hSM14746 > -----Original Message----- > From: Michael A Chase [mailto:mchase AT ix DOT netcom DOT com] > Sent: Monday, July 29, 2002 9:07 AM > To: Alex Vinokur; Cygwin Mailing List > Subject: Re: locate: /usr/var/locatedb: No such file or directory > > > On Mon, 29 Jul 2002 10:03:14 +0200 Alex Vinokur > wrote: > > > $ locale ls > > locate: /usr/var/locatedb: No such file or directory > > > > What do I have to do in order to use locate ? > > man locate > man updatedb Thanks. After % updatedb it works. However how do I have the locate utility in order to know where 'ls' is ? According man locate (1) ------------------------------------------------------------------------ ------ If a pattern is a plain string -- it contains no metachar- acters -- locate displays all file names in the database that contain that string anywhere. If a pattern does con- tain metacharacters, locate only displays file names that match the pattern exactly. As a result, patterns that contain metacharacters should usually begin with a `*', and will most often end with one as well. The exceptions are patterns that are intended to explicitly match the beginning or end of a file name. ------------------------------------------------------------------------ ----- $locate ls generates 1389 lines $locate *ls generete 71 lines But I need to know about the 'ls' pattern exactly. ==================== Alex Vinokur http://up.to/alexvn http://go.to/alexv_math mailto:alexvn AT bigfoot DOT com mailto:alexvn AT go DOT to ==================== -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/