Re: Is updatedb a bash script or a binary executable?

2011-11-08 Thread Andreas Metzler
On 2011-11-08 Peng Yu wrote: > On Tue, Nov 8, 2011 at 12:07 PM, Andreas Metzler > wrote: [...] > ~$ dpkg -S bin/updatedb > mlocate: /usr/bin/updatedb.mlocate > Does updatedb.mlocate has anything to do with findutils? mlocate is a different program than GNU locate providing the same functionali

Re: Is updatedb a bash script or a binary executable?

2011-11-08 Thread Peng Yu
On Tue, Nov 8, 2011 at 12:07 PM, Andreas Metzler wrote: > On 2011-11-08 Peng Yu wrote: >> I see that updatedb is a bash script after I compiled the source. But >> updatedb in ubuntu is a binary. I'm wondering where the binary >> updatedb in ubuntu comes from? > > dpkg -S bin/updatedb ~$ dpkg -S

Re: Is updatedb a bash script or a binary executable?

2011-11-08 Thread Andreas Metzler
On 2011-11-08 Peng Yu wrote: > I see that updatedb is a bash script after I compiled the source. But > updatedb in ubuntu is a binary. I'm wondering where the binary > updatedb in ubuntu comes from? dpkg -S bin/updatedb cu andreas -- `What a good friend you are to him, Dr. Maturin. His other fr

Is updatedb a bash script or a binary executable?

2011-11-08 Thread Peng Yu
Hi, I see that updatedb is a bash script after I compiled the source. But updatedb in ubuntu is a binary. I'm wondering where the binary updatedb in ubuntu comes from? -- Regards, Peng

Re: limiting the directory to locate and search by file type

2011-11-08 Thread Peng Yu
On Tue, Nov 8, 2011 at 3:40 AM, James Youngman wrote: > On Tue, Nov 8, 2011 at 12:11 AM, Peng Yu wrote: >> On Mon, Nov 7, 2011 at 5:47 PM, James Youngman wrote: >>> You can achieve this by using locate --regex. >> >> Suppose I want to restrict the search to /tmp, what regex I should specify? > >

Re: limiting the directory to locate and search by file type

2011-11-08 Thread James Youngman
On Tue, Nov 8, 2011 at 12:11 AM, Peng Yu wrote: > On Mon, Nov 7, 2011 at 5:47 PM, James Youngman wrote: >> You can achieve this by using locate --regex. > > Suppose I want to restrict the search to /tmp, what regex I should specify? locate --regex '^/tmp\($\|/\)' ... but most distributions don'