[lug] Finding a File
Hugh Brown
hugh at math.byu.edu
Thu May 6 17:15:18 MDT 2004
On Thu, 2004-05-06 at 11:47, Michael Deck wrote:
> At 09:43 AM 5/6/2004, rm at fabula.de wrote:
> <snip>
> > BTW, you _can_ actually use 'find' with wildcards:
> >
> > $ find /usr/local/bin -name 'minic*'
> >
> > Should work.
>
> I have a question about this. I've gotten different results when I do this:
>
> $ find /usr/local/bin -name 'minic*'
>
> versus when I do this:
>
> $ cd /usr/local/bin
> $ find . -name 'minic*'
>
> Very often, the first form doesn't find any files, the second form finds
> lots. This on Mdk9.0 for sure, I think I've seen it on Fedora FC1 as well,
> but I don't remember now.
>
> Any thoughts?
>
> -Mike
In my experience the only difference you should see between doing those
to things is the prefix that you get on the matches.
find /usr/bin/ -name 'mini*'
/usr/bin/minizip
/usr/bin/miniunzip
cd /usr/bin;find . -name 'mini*'
./minizip
./miniunzip
Hugh
More information about the LUG
mailing list