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-04-10 14:55:38
最后一次提交2025-04-10 10:55:32
發布數234
最新版本名稱globset-0.4.16 (發布於 2025-02-27 12:46:59)
第一版名稱0.0.1 (發布於 2016-09-05 20:25:29)
用户参与
星數51.8k
關注者數293
派生數2.1k
提交數2.1k
已啟用問題?
問題數1674
打開的問題數123
拉請求數514
打開的拉請求數54
關閉的拉請求數318
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?