To list only file paths matching a given query, use --file-with-matches-- option. Example,
--file-with-matches--
rg --files-with-matches EnableEureka
For case insensitive searches, use -i flag.
-i
Search in specific files.
Examples,
Search in only gradle files,
rg grpc -g '*.gradle'
Search in non-gradle files,
rg grpc -g '!*.gradle'
Last updated 6 years ago