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 1PtHwv-0006Mu-2J for garchives@archives.gentoo.org; Sat, 26 Feb 2011 11:04:34 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 905A81C077 for ; Sat, 26 Feb 2011 11:04:32 +0000 (UTC) Received: from minas.ics.muni.cz (minas.ics.muni.cz [147.251.4.40]) by pigeon.gentoo.org (Postfix) with ESMTP id 560B11C013 for ; Sat, 26 Feb 2011 10:24:24 +0000 (UTC) Received: from anxur.fi.muni.cz (anxur.fi.muni.cz [147.251.48.3]) by minas.ics.muni.cz (8.13.8/8.13.8/SuSE Linux 0.8) with ESMTP id p1QAON5l009303 for ; Sat, 26 Feb 2011 11:24:24 +0100 Received: from palantir.doma (89-24-146-54.adsl.tmcz.cz [89.24.146.54]) by anxur.fi.muni.cz (Postfix) with ESMTP id 12D5D7001F for ; Sat, 26 Feb 2011 11:24:23 +0100 (CET) Date: Sat, 26 Feb 2011 11:24:22 +0100 From: Roman Zilka To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Search filesystem with a wildcard Message-Id: <20110226112422.36631fea.zilka@fi.muni.cz> In-Reply-To: <20110226031922.GA11390@Diamond.KWGR614> References: <20110226031922.GA11390@Diamond.KWGR614> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.22.1; x86_64-pc-linux-gnu) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Muni-Spam-TestIP: 147.251.48.3 X-Muni-Envelope-From: zilka@fi.muni.cz X-Muni-Virus-Test: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (minas.ics.muni.cz [147.251.4.35]); Sat, 26 Feb 2011 11:24:24 +0100 (CET) X-Archives-Salt: X-Archives-Hash: ceb936d40883e0eebd2eba068d0d1da6 Amankwah (Sat, 26 Feb 2011 11:19:22 +0800): > On Fri, Feb 25, 2011 at 06:26:51PM -0800, Grant wrote: > > I used to use slocate like this to search the filesystem for a file: > > > > foo*.txt > > > > but mlocate doesn't seem to accept wildcards. I tried to figure out > > how to do it with find but failed. Can anyone point me in the right > > direction? > > > > - Grant > > How about this? > > find -name foo*.txt ? +1 to this solution. Only, it may destroy the universe on some rare occasions. A safer way: find / -type f -name 'foo*.txt' -rz