SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the -quit option of find:
-quit
find
find <dir> -maxdepth 1 -type d -name '*foo*' -print -quit