From: | Grant <emailgrant@×××××.com> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] Search filesystem with a wildcard | ||
Date: | Sat, 26 Feb 2011 18:08:37 | ||
Message-Id: | AANLkTintoc2mbe389khk=NhAYOG3Jcvo_9fzgiEzZ_s0@mail.gmail.com | ||
In Reply to: | Re: [gentoo-user] Search filesystem with a wildcard by Amankwah |
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 | > How about this? |
12 | > |
13 | > find -name foo*.txt ? |
14 | |
15 | I can't get find to work. This works: |
16 | |
17 | locate *foo*.txt |
18 | |
19 | but none of these work: |
20 | |
21 | find /my/folder -name foo*.txt |
22 | find /my/folder -name *foo*.txt |
23 | find /my/folder -type f -name '*foo*.txt' |
24 | |
25 | What am I doing wrong? I do need the find to be recursive in that folder. |
26 | |
27 | - Grant |
Subject | Author |
---|---|
Re: [gentoo-user] Search filesystem with a wildcard | luis jure <ljc@××××××××××××.uy> |
Re: [gentoo-user] Search filesystem with a wildcard | Roman Zilka <zilka@×××××××.cz> |
Re: [gentoo-user] Search filesystem with a wildcard | Stroller <stroller@××××××××××××××××××.uk> |