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

Reply via email to