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.

Overview

Name With OwnerBurntSushi/ripgrep
Primary LanguageRust
Program languageRust (Language Count: 5)
PlatformLinux, Mac, Windows
License:The Unlicense
Release Count232
Last Release Name14.1.0 (Posted on 2024-01-06 14:33:27)
First Release Name0.0.1 (Posted on 2016-09-05 20:25:29)
Created At2016-03-11 02:02:33
Pushed At2024-04-23 09:10:18
Last Commit At2024-04-02 21:10:25
Stargazers Count44.9k
Watchers Count296
Fork Count1.9k
Commits Count2k
Has Issues Enabled
Issues Count1568
Issue Open Count87
Pull Requests Count498
Pull Requests Open Count14
Pull Requests Close Count302
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top