[dev] Re: locate

From: <u_AT_netbeisser.de>
Date: Mon, 28 Nov 2011 20:54:44 +0100

Heh,

On Mon, Nov 28, 2011 at 09:59:59AM -0900, rogerx.oss_AT_gmail.com wrote:
> Thanks for the tip! Been awhile since I looked at man locate. ;-)

It is always amazing ;-)

> > On Mon, Nov 28, 2011 at 04:19:10PM +0100, u_AT_netbeisser.de wrote:
> >Heh,

>On 27 November 2011 23:13, Roger <rogerx.oss_AT_gmail.com> wrote:
 locate "stest" |grep ^stest$
> ..
> locate "lstest"
> /usr/bin/mtoolstest
> /usr/share/man/man1/mtoolstest.1.bz2
>On Linux, one can use -r switch to locate:
>, locate -r '^/bin/ls$'
>/bin/ls

Since, on FreeBSD, there isn't such a switch, I found something like
locate '/bin[/]cp' to be useful.
 

Cheers,

-- 
--
Stefan Kuttler ==*== nc.netbeisser.de
Received on Mon Nov 28 2011 - 20:54:44 CET

This archive was generated by hypermail 2.3.0 : Mon Nov 28 2011 - 21:00:05 CET