ripgrep

在尊重 gitignore 的同时,ripgrep 递归地在目录中搜索正则表达式模式。「ripgrep recursively searches directories for a regex pattern while respecting your gitignore.

Github stars Tracking Chart

ripgrep (rg)

ripgrep is a line-oriented search tool that recursively searches your current
directory for a regex pattern. By default, ripgrep will respect your .gitignore
and automatically skip hidden files/directories and binary files. ripgrep
has first class support on Windows, macOS and Linux, with binary downloads
available for every release.
ripgrep is similar to other popular search tools like The Silver Searcher, ack
and grep.

Linux build status
Windows build status
Crates.io
Packaging status

Dual-licensed under MIT or the UNLICENSE.

CHANGELOG

Please see the CHANGELOG for a release history.

Screenshot of search results

A screenshot of a sample search with ripgrep

Quick examples comparing tools

This example searches the entire Linux kernel source tree (after running
make defconfig && make -j8) for [A-Z]+_SUSPEND, where all matches must be
words. Timings were collected on a system with an Intel i7-6900K 3.2 GHz, and
ripgrep was compiled with SIMD enabled.

Please remember that a single benchmark is never enough! See my
blog post on ripgrep
for a very detailed comparison with more benchmarks and analysis.

Main metrics

Overview
Name With OwnerBurntSushi/ripgrep
Primary LanguageRust
Program languageRust (Language Count: 5)
PlatformLinux, Mac, Windows
License:The Unlicense
所有者活动
Created At2016-03-11 02:02:33
Pushed At2025-04-10 14:55:38
Last Commit At2025-04-10 10:55:32
Release Count234
Last Release Nameglobset-0.4.16 (Posted on 2025-02-27 12:46:59)
First Release Name0.0.1 (Posted on 2016-09-05 20:25:29)
用户参与
Stargazers Count51.8k
Watchers Count293
Fork Count2.1k
Commits Count2.1k
Has Issues Enabled
Issues Count1674
Issue Open Count123
Pull Requests Count514
Pull Requests Open Count54
Pull Requests Close Count318
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private