ripgrep manual

ripgrep Rust version grep, here records some common used options for it.

rg "xxx" -g "file_pattern.txt" -g "!*.out"
  • -i: ignore case
  • -s: case sensitive

Patterns

  • !*.txt: exclude *.txt
  • ^.*fast.*$: ^ line head, $ line tail