Date: Tue, 1 Oct 2002 22:07:41 +1000 From: "Rob B" <rbyrnes@ozemail.com.au> To: "Lee Gold" <goldtech@worldpost.com>, "Adam Weinberger" <adam@vectors.cx> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: unix locate cmd Message-ID: <00ef01c26943$24fa3d60$3164a8c0@pootah> References: <E17wK6C-0007P5-00@smtp03.mrf.mail.rcn.net> <20021001102412.GJ77771@vectors.cx> <000601c2693b$eb586160$ede03ad0@ljgms2k>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- From: "Lee Gold" <goldtech@worldpost.com> To: "Adam Weinberger" <adam@vectors.cx> Cc: <freebsd-questions@FreeBSD.ORG> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00ef01c26943$24fa3d60$3164a8c0>