Skip to content

How to restrict files to matching dir-or-file names? #1567

Answered by BurntSushi
douglasdd asked this question in General
Discussion options

You must be logged in to vote

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 **.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@douglasdd
Comment options

Answer selected by BurntSushi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants