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