find behaviour differs depending on directory

Jeremy Huntwork jhuntwork at linuxfromscratch.org
Fri Aug 27 10:14:29 PDT 2004


On Fri, 2004-08-27 at 10:09 -0700, Kevin P. Fleming wrote:
> This happens because you didn't "protect" the asterisk character by 
> quoting it, so the shell is processing it, not the find command.
> 
> To do what you want, you should use:
> 
> find -name \*.ko

Or, another option:

find --help describes this syntax, find [path...] [expression]

so, if you used this syntax, it will also work regardless of your
current working dir.

find /full/path -name "*.ko"

-- 
Jeremy Huntwork
http://www.jenacon.net




More information about the lfs-support mailing list