Find a pattern in files
$ rg <pattern>
List files according to pattern
$ rg -l <pattern>
Find a word in files
$ rg -w <word>
Find a pattern in files but restrict the file format
$ rg -t [ python | c | yaml | json | .. ] <pattern>
Find the number of occurences of a pattern by file
$ rg -c <pattern>
Print the files that doesn't match the expression
$ rg --files-without-match <pattern>