1 |
On Fri, Feb 25, 2011 at 9:26 PM, Grant <emailgrant@×××××.com> wrote: |
2 |
> I used to use slocate like this to search the filesystem for a file: |
3 |
> |
4 |
> foo*.txt |
5 |
> |
6 |
> but mlocate doesn't seem to accept wildcards. I tried to figure out |
7 |
> how to do it with find but failed. Can anyone point me in the right |
8 |
> direction? |
9 |
> |
10 |
> - Grant |
11 |
> |
12 |
> |
13 |
|
14 |
Try locate "*/foo*.txt". mlocate seems to match based on the full path name. |
15 |
|
16 |
Also, to quote the manpage: |
17 |
|
18 |
If any PATTERN contains no globbing characters, locate behaves as if |
19 |
the pattern were *PATTERN*. |