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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 10 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.