>> 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 ?
I can't get find to work. This works: locate *foo*.txt but none of these work: find /my/folder -name foo*.txt find /my/folder -name *foo*.txt find /my/folder -type f -name '*foo*.txt' What am I doing wrong? I do need the find to be recursive in that folder. - Grant