From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PuDwV-0007EM-1s for garchives@archives.gentoo.org; Tue, 01 Mar 2011 00:59:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EE3911C04D; Tue, 1 Mar 2011 00:58:25 +0000 (UTC) Received: from mail-iw0-f181.google.com (mail-iw0-f181.google.com [209.85.214.181]) by pigeon.gentoo.org (Postfix) with ESMTP id BD2251C04D for ; Tue, 1 Mar 2011 00:58:25 +0000 (UTC) Received: by iwn2 with SMTP id 2so5126394iwn.40 for ; Mon, 28 Feb 2011 16:58:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=jHn6KdyCBeBBq7Z5hS+GgU2EZeP1bELzJ+a+7nvMWhs=; b=HBDrWyywpsGMcPM81vskDuK4RlNI9Yao7STj5rN84BS9nJjXJwxkHdtPV9Gx0d6Ky6 9CEifjCsE0sYG89tuy0OHnKJKXngf3tkfGokCxT13re932HGZnx0Pd+a0KEnpbzdaKtl 2VoY7ZTR2RfvgKCyJgL4caasqRgGNwXtqOKyY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=CjCcuCvTttu9kmXBSv+ysCY5qiSH6r5Ar5xdOa3+M1dBZqahgjWrVpejFdJRZy0b2G FbOj6McmV0CfCWdASwGd2amkxnsoQtTZ/5EYUcpiNFkdWoHPZ7b1LKpJ9QKCeTNEFDOo mQTnm9RwdvF87wGepcRmohoQwnjcDsoK0ipnE= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.42.225.199 with SMTP id it7mr3584833icb.507.1298941105320; Mon, 28 Feb 2011 16:58:25 -0800 (PST) Received: by 10.42.179.73 with HTTP; Mon, 28 Feb 2011 16:58:25 -0800 (PST) In-Reply-To: References: Date: Mon, 28 Feb 2011 16:58:25 -0800 Message-ID: Subject: Re: [gentoo-user] Search filesystem with a wildcard From: Grant To: Gentoo mailing list Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: f1afe68b2c580be51dbf78d4832d3d8a >>> I used to use slocate like this to search the filesystem for a file: >>> >>> foo*.txt >>> >>> but mlocate doesn't seem to accept wildcards. =A0I tried to figure out >>> how to do it with find but failed. =A0Can anyone point me in the right >>> direction? >>> >>> - Grant >>> >>> >> >> Try locate "*/foo*.txt". mlocate seems to match based on the full path n= ame. >> >> Also, to quote the manpage: >> >> If any PATTERN contains no globbing characters, locate behaves as if >> the pattern were *PATTERN*. > > I get it now, thank you for that. > > - Grant I'm having trouble with this again. I get: # ls -l /var/cache/revdep-rebuild total 424 -rwx------ 1 root portage 699 Feb 28 16:52 0_env.rr -rwx------ 1 root portage 323445 Feb 28 16:38 1_files.rr -rwx------ 1 root portage 34387 Feb 28 16:38 2_ldpath.rr -rwx------ 1 root portage 57 Feb 28 16:40 3_broken.rr -rwx------ 1 root portage 34641 Feb 28 16:39 3_errors.rr -rwx------ 1 root portage 19 Feb 28 16:40 4_ebuilds.rr -rwx------ 1 root portage 79 Feb 28 16:40 4_owners.rr -rwx------ 1 root portage 23 Feb 28 16:40 4_pkgs.rr -rwx------ 1 root portage 23 Feb 28 16:40 4_raw.rr -rwx------ 1 root portage 25 Feb 28 16:40 5_order.rr -rwx------ 1 root portage 2 Feb 28 16:52 6_status.rr # locate *.rr # - Grant