Skip to content

Can I match / ignore files in folders without knowing it's folder structure? #2287

Answered by ziontee113
ziontee113 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, I think I've found the answer from:
#831
https://docs.rs/globset/0.3.0/globset/#syntax

I tried rg "the_string_to_search" -g "!**/utils/*.lua" and it seemed to work 😄

Replies: 1 comment 1 reply

Comment options

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

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