ripgrep

A line-oriented search tool that recursively searches directories for a regex.

Stars
70k
Forks
3.5k
Licence
MIT OR Unlicense
Language
Rust
Version
15.2.0
Updated

At a glance

  • Respects .gitignore and skips hidden and binary files by default
  • Very fast on large codebases
  • Full Unicode support

Get started

Homebrewbrew install ripgrep
Cargocargo install ripgrep

What it is

ripgrep, invoked as rg, is a replacement for grep -r. It searches the current directory tree for a pattern and prints matching lines.

Why it stands out

Sensible defaults do most of the work: ignored, hidden and binary files are skipped automatically. It is the search engine behind several editors.

Who it is for

Anyone who searches code from a terminal.