Can I match / ignore files in folders without knowing it's folder structure? #2287
-
Thank you so much for the amazing project. And I apologize before hand if I'm doing a bad job asking my question. Let's say we have this folder structure:
I can do If I want to ignore My question is: if I don't know beforehand the folder structure that leads to Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, I think I've found the answer from: I tried |
Beta Was this translation helpful? Give feedback.
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 😄