Created
March 17, 2018 18:27
-
-
Save toashd/2e500beb8af23c5b84e5a90c55fe5648 to your computer and use it in GitHub Desktop.
Find first folder name that contains a string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find <dir> -maxdepth 1 -type d -name '*foo*' -print -quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment