Overview
ripgrep (rg) is a command-line tool designed for quickly searching through directories for specified regex patterns. Unlike traditional grep utilities, ripgrep natively respects .gitignore files and automatically skips hidden files/directories and binary files, enhancing its usability in software development workflows. It boasts first-class support for Windows, macOS, and Linux and provides binary downloads for each release. ripgrep is written in Rust, leveraging Rust's performance and safety guarantees, which makes it faster and more memory-efficient than many other similar tools. It supports features like showing context, searching multiple patterns, highlighting matches with color, and full Unicode support. Optional PCRE2 support can be enabled for look-around and backreferences, and it can search files compressed in various formats (brotli, bzip2, gzip, etc.) with the -z flag.
Common tasks
