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 1PtOWm-0006Ql-0q for garchives@archives.gentoo.org; Sat, 26 Feb 2011 18:06:00 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 676671C0E1 for ; Sat, 26 Feb 2011 18:05:59 +0000 (UTC) Received: from mail-vx0-f181.google.com (mail-vx0-f181.google.com [209.85.220.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 90F481C05F for ; Sat, 26 Feb 2011 17:16:31 +0000 (UTC) Received: by vxb39 with SMTP id 39so2999895vxb.40 for ; Sat, 26 Feb 2011 09:16:31 -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=lfn7U28ssElEpkZK0dCYlCCDquVHeLPf1q57/f3+w7U=; b=B+F+ekNbGmCYq0rJVkGnVyWcP5ywjb42DzubPEMPbKYjEsPKyzk5B3LtJD/5KvFm8b 0Ya1L2QQ4NTBFRJQD+lTjeoB5gwNL9prF4OtF5jKdX22eeopxfO+/8c8TjAhB6YynL0H nufISaW6tVHk8sVCdhoO740UGOYE0oPW6bFdg= 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=xNmYiiHuq6/f3PORvqTrwd4rjcInW0ytOUQmcQ2gFqytyfG55hyU0hOyJkvafGrX5x RVnEzuEHz6XHEbwfexQNSovGTm9oO1SJ5QCO2es8LuK/Bmjv0O0bpNt0oQ9uoTdA4yNy H1biQPt7hl9/xj0f1xWM9K0BkwBghza/B9XVE= 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.52.66.173 with SMTP id g13mr6151221vdt.203.1298740591016; Sat, 26 Feb 2011 09:16:31 -0800 (PST) Received: by 10.220.71.140 with HTTP; Sat, 26 Feb 2011 09:16:30 -0800 (PST) In-Reply-To: References: Date: Sat, 26 Feb 2011 09:16:30 -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: f631b4944b1ad20bd6c0a75113c62b26 >> 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 na= me. > > 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