Last active
October 5, 2021 21:05
-
-
Save ctemplin/a164a5ac49279715df31d7c35a004ed9 to your computer and use it in GitHub Desktop.
Locate directories that contain string. Example query: 'bash-completion'
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
# lists matching non-dirs too after dirs | |
ls -dp --group-directories-first `locate -b '\bash*completion'` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A lot faster than
find -name [string]
.