how to search in multiple directories with specified extensions #1607
Answered
by
BurntSushi
xinglonghe
asked this question in
General
-
windows findstr can do this like: which search in two directories "root\dir1" and "root\dir2", and only search the files with extension ".c" and ".h". I know that ripgrep can do this with: the command looks too tedious, especially if we want to specify too many directories and extensions. Is there a simpler syntax for ripgrep doing this? |
Beta Was this translation helpful? Give feedback.
Answered by
BurntSushi
Jun 7, 2020
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
xinglonghe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rg root/dir1 root/dir2 -tc foo