Ripgrep is a git and sourcecode-aware drop-in grep replacement.

Updating rg

webi rg@stable

Use the @beta tag for pre-releases.

Cheat Sheet

Ripgrep (rg) is smart. It's like grep if grep were built for code. It respects .gitignore and .ignore, has all of the sensible options you want (colors, numbers, etc) turned on by default, is written in Rust, and typically outperforms grep in many use cases.

rg <search-term> # searches recursively, ignoring .git, node_modules, etc
rg 'function doStuff'
rg 'doStuff\(.*\)'

Contribute

Report an Issue Submit Installer