From owner-freebsd-questions Tue Oct 1 5:26: 1 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B64F37B401 for ; Tue, 1 Oct 2002 05:26:00 -0700 (PDT) Received: from mta02.mail.mel.aone.net.au (mta02.mail.au.uu.net [203.2.192.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E7E943E65 for ; Tue, 1 Oct 2002 05:25:58 -0700 (PDT) (envelope-from rbyrnes@ozemail.com.au) Received: from pootah ([63.34.199.71]) by mta10.mail.mel.aone.net.au with SMTP id <20021001121444.ZPZP28619.mta10.mail.mel.aone.net.au@pootah>; Tue, 1 Oct 2002 22:14:44 +1000 Message-ID: <00ef01c26943$24fa3d60$3164a8c0@pootah> From: "Rob B" To: "Lee Gold" , "Adam Weinberger" Cc: References: <20021001102412.GJ77771@vectors.cx> <000601c2693b$eb586160$ede03ad0@ljgms2k> Subject: Re: unix locate cmd Date: Tue, 1 Oct 2002 22:07:41 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Original Message ----- From: "Lee Gold" To: "Adam Weinberger" Cc: Sent: Tuesday, October 01, 2002 9:15 PM Subject: Re: unix locate cmd > > > > >> (10.01.2002 @ 0418 PST): Lee Gold said, in 0.5K: << > > > I'm trying to use the locate cmd to find all > > > instances of .xinitrc in my system. I did,.... > > > > ..snip.. > > > > when you run the program, you're leaving out the 'n' in locate.updatedb, > > right? > > that's an email typo. > > ...snip... > > > so you can't locate anything at all? so, for example, "locate termcap" > > gives no output? what's the filesize of your /var/db/locate.database? > > the db is about 420kb > sorry, it works perfectly $locate temp or $locate X11 > give big lists. I think I'm getting stuck on the dot beginning > the string .xinitrc - I must not be handling that leading "." > correctly w/locate. The output of $locate .xinitrc is nothing > just a new prompt. What would be the reason? Try using locate ".xinitrc" Wildcards and regexps have to be enclosed in quotes for locate to work. cheers, Rob To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message