On Fri, Feb 25, 2011 at 9:26 PM, Grant <emailgr...@gmail.com> wrote:
> I used to use slocate like this to search the filesystem for a file:
>
> foo*.txt
>
> but mlocate doesn't seem to accept wildcards.  I tried to figure out
> how to do it with find but failed.  Can anyone point me in the right
> direction?
>
> - Grant
>
>

Try locate "*/foo*.txt". mlocate seems to match based on the full path name.

Also, to quote the manpage:

If any PATTERN contains no globbing characters, locate behaves as if
the pattern were *PATTERN*.

Reply via email to