How to restrict files to matching dir-or-file names? #1567
-
My use case: In an enormous codebase, I'd like to restrict searching to only those files owned or related to a particular team/feature ("FooBar" for example).
If I had bash4 with
I can get close with:
Does this make sense? (If not I can try to create a .tar example test case) |
Beta Was this translation helpful? Give feedback.
Answered by
BurntSushi
May 4, 2020
Replies: 1 comment 1 reply
-
Seems like Also, I'm pretty sure zsh is available on macOS (isn't it the default nowadays?), and I believe that supports |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
BurntSushi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems like
rg --iglob '**/*FooBar*/**'
should work. So you were almost there. :-)Also, I'm pretty sure zsh is available on macOS (isn't it the default nowadays?), and I believe that supports
**
.