Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

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

In the command find theres a switch called name but it doesn't exist in OS X, whats the equivalent switch for OS X?

share|improve this question
It's the same. Use "find . -name ..." -- you need to use directory where to search before other expressions like -name. – Peter Štibraný Feb 20 '12 at 11:30
You should have provided this as an answer Peter – conorgriffin Feb 20 '12 at 11:56
up vote 3 down vote accepted

Actually you can use the find command as in unix e.g.: find . -name "*.log"

At least on all of my mac systems works this.

see 'man find':

-name pattern
         True if the last component of the pathname being examined matches
         pattern.  Special shell pattern matching characters (``['',
         ``]'', ``*'', and ``?'') may be used as part of pattern.  These
         characters may be matched explicitly by escaping them with a
         backslash (``\'').
share|improve this answer
My mistake kept thinking it was like a switch not an option so was putting my directory after it causing it to error. – Dean Feb 20 '12 at 11:35

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.