Gentoo Archives: gentoo-user

From: thelma@×××××××××××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] locate can not find a file
Date: Wed, 15 Mar 2017 16:23:56
Message-Id: 179ac761-b780-fd0d-d9b0-d87caa1faa01@sys-concept.com
In Reply to: Re: [gentoo-user] locate can not find a file by Neil Bothwick
1 On 03/15/2017 10:16 AM, Neil Bothwick wrote:
2 > On Wed, 15 Mar 2017 09:10:26 -0600, thelma@×××××××××××.com wrote:
3 >
4 >> Yes, I run as root: updatedb
5 >> But when run:
6 >> locate consent_extraction*
7 >>
8 >> It only list one file:
9 >> /home/fd/consent_extraction1.pdf (this is a link file)
10 >> /home/fd/business/forms/consent_extraction1.pdf
11 >
12 > The wildcard is being expanded by your shell, so the command you are
13 > actually running is
14 >
15 > locate consent_extraction1.pdf
16 >
17 > If you want to pass the * to locate, you need to escape or quote it.
18
19 locate consent_extraction\* - didn't find anything
20 locate "consent_extraction*" - didn't find anything
21
22 locate "*consent_extraction*" - found both files
23 locate *consent_extraction* - found both files
24
25 I guess I have to erase my memory of DOS
26
27 --
28 Thelma

Replies

Subject Author
Re: [gentoo-user] locate can not find a file Neil Bothwick <neil@××××××××××.uk>