Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I was using find to search for a file on my machine like so:

find / -name version-1.0.*

and the result was just one file in my home directory, version-1.0.23. However, if I ran the following:

find / -name version-1.0.1*

the result was /data/somelongpath/version-1.0.19.

Why would this second result be omitted from the results in the first case?

share|improve this question

1 Answer 1

up vote 8 down vote accepted

You have a file that matches the glob in the current directory, and your shell is globbing it. Escape the glob.

find / -name 'version-1.0.*'
share|improve this answer
Extra info for readers: "globbing" refers to the shell expanding wildcards into the full filename or a list of filenames. The shell does this before executing the program. – Zan Lynx Jul 29 '11 at 22:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.