rg Manual

Published: Sat 13 January 2024

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

links