ripgrep

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

Github星跟踪图

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.

主要指标

概览
名称与所有者BurntSushi/ripgrep
主编程语言Rust
编程语言Rust (语言数: 5)
平台Linux, Mac, Windows
许可证The Unlicense
所有者活动
创建于2016-03-11 02:02:33
推送于2025-05-30 12:30:52
最后一次提交2025-05-30 20:30:52
发布数234
最新版本名称globset-0.4.16 (发布于 2025-02-27 12:46:59)
第一版名称0.0.1 (发布于 2016-09-05 20:25:29)
用户参与
星数52.9k
关注者数292
派生数2.1k
提交数2.1k
已启用问题?
问题数1681
打开的问题数124
拉请求数515
打开的拉请求数61
关闭的拉请求数322
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?