ripgrep recursively searches directories for a regex pattern while respecting your gitignore. It's faster than grep, ag, ack, and git grep.
ripgrep (rg) is a lightning-fast, line-oriented search tool that recursively searches directories for regex patterns. It's designed as a modern replacement for grep, The Silver Searcher, and ack, with significant performance improvements and intelligent defaults. ripgrep automatically respects gitignore rules, skips hidden files and binary files, and provides first-class support across Windows, macOS, and Linux.
What sets ripgrep apart is its combination of speed and smart filtering. It can search specific file types (like Python or JavaScript files), supports multiple text encodings beyond UTF-8, handles compressed files, and offers optional PCRE2 regex engine support for advanced features like look-around and backreferences. The tool also includes features like search result context, pattern highlighting, Unicode support, and basic find-and-replace functionality.
ripgrep is ideal for developers, system administrators, and anyone who frequently searches through codebases or large text collections. Its performance benchmarks consistently show it outperforming traditional tools by significant margins while maintaining compatibility with common grep features and offering additional conveniences that make it particularly well-suited for modern development workflows.
# via Binary Download
Download from https://github.com/BurntSushi/ripgrep/releases
# via Cargo
cargo install ripgrep
