Gentoo Archives: gentoo-user

From: Grant <emailgrant@×××××.com>
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Search filesystem with a wildcard
Date: Sat, 26 Feb 2011 18:06:00
Message-Id: AANLkTinK6Ya5FDozx8dt+9nH98dV5cTJ-mQsN2B6NLfF@mail.gmail.com
In Reply to: Re: [gentoo-user] Search filesystem with a wildcard by Mike Gilbert
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

Replies

Subject Author
Re: [gentoo-user] Search filesystem with a wildcard Grant <emailgrant@×××××.com>