Mark's Blog About Search Activity

OSx find file in subdirectory

Love SO/superuser - writing the answer down here… How in OSx can you find files in sub-folders based on filename; e.g. for DOS

DIR *.mp3 /s
DIR \path\to\search\*.mp3 /s

OSx terminal (bash):

find . -name *.mp3 
find /path/to/search -name *.mp3

man page here and on Apple developer.

If you liked this post, you can share it with your followers or follow me on Twitter!
comments powered by Disqus