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: Tue, 01 Mar 2011 00:59:59
Message-Id: AANLkTiniN762+_Tb0rDgJwExf8ZPhovwYH1yDbY6Hids@mail.gmail.com
In Reply to: Re: [gentoo-user] Search filesystem with a wildcard by Grant
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
23
24 I'm having trouble with this again. I get:
25
26 # ls -l /var/cache/revdep-rebuild
27 total 424
28 -rwx------ 1 root portage 699 Feb 28 16:52 0_env.rr
29 -rwx------ 1 root portage 323445 Feb 28 16:38 1_files.rr
30 -rwx------ 1 root portage 34387 Feb 28 16:38 2_ldpath.rr
31 -rwx------ 1 root portage 57 Feb 28 16:40 3_broken.rr
32 -rwx------ 1 root portage 34641 Feb 28 16:39 3_errors.rr
33 -rwx------ 1 root portage 19 Feb 28 16:40 4_ebuilds.rr
34 -rwx------ 1 root portage 79 Feb 28 16:40 4_owners.rr
35 -rwx------ 1 root portage 23 Feb 28 16:40 4_pkgs.rr
36 -rwx------ 1 root portage 23 Feb 28 16:40 4_raw.rr
37 -rwx------ 1 root portage 25 Feb 28 16:40 5_order.rr
38 -rwx------ 1 root portage 2 Feb 28 16:52 6_status.rr
39 # locate *.rr
40 #
41
42 - Grant

Replies

Subject Author
Re: [gentoo-user] Search filesystem with a wildcard Alex Schuster <wonko@×××××××××.org>