Ripgrep

description: Commandline tool rg

lang: ENG

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>
$ rg --files-without-match <pattern>