Rust Grep

Open-source Rust projects categorized as Grep

Top 19 Rust Grep Projects

  1. ripgrep

    ripgrep recursively searches directories for a regex pattern while respecting your gitignore

    Project mention: fd: A simple, fast and user-friendly alternative to 'find' | news.ycombinator.com | 2025-03-19

    I'm sure you can get creative. :-) You can set an environment variable to control the encoding, expose a flag or any one of a number of other things to control the encoding.

    You've also continued to ignore my most substantive rebuttal: that a specific example where ripgrep is not compatible with grep or doesn't behave the same doesn't mean it can't be used in shell pipelines. Literally nothing you've said has invalidated anything I've said. All you're doing is finding things that some implementations of grep can do that ripgrep (intentionally) cannot do in exactly the same way. But that's fine, because ripgrep was never, isn't and will never be compatible with grep: https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#pos...

    So if you need grep compatibility get a fucking clue and just use grep.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. ast-grep

    ⚡A CLI tool for code structural search, lint and rewriting. Written in Rust

    Project mention: Using ast-grep with a vue project | dev.to | 2024-12-31

    The amazing ast-grep tool does not support vue and scss by default but can be configured to do so.

  4. amber

    A code search / replace tool (by dalance)

    Project mention: amber, a code search & replace tool | news.ycombinator.com | 2024-05-23
  5. srgn

    A grep-like tool which understands source code syntax and allows for manipulation in addition to search

    Project mention: Refactoring Python with Tree-sitter and Jedi | news.ycombinator.com | 2024-09-27

    which seems roughly like what the author is after. Mentions of "database" _outside_ function definitions are not modified. That sort of logic I always found hard to replicate in basic GNU-like tools.

    Note: I just wrote this, and version 13.2 is required for the above to work.

    [0]: https://github.com/alexpovel/srgn

  6. sig

    Interactive grep (for streaming) (by ynqa)

    Project mention: AIM Weekly 03 June 2024 | dev.to | 2024-06-03
  7. teip

    Masking tape to help commands "do one thing well"

  8. hgrep

    Grep with human-friendly search results

  9. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  10. ruplacer

    Find and replace text in source files

    Project mention: Scooter: Interactive Find and Replace for the Terminal | news.ycombinator.com | 2024-11-15

    Also see the excellent https://github.com/your-tools/ruplacer.

    For more advanced needs, I have a custom thing called greprep that let's you make changes using your favorite editor. Workflow is like this:

      1. $ rg -n .... > /tmp/lines.txt

  11. fltr

    Like grep but for natural language questions. Based on Mistral 7B or Mixtral 8x7B.

  12. grip-grab

    Hold on tight

    Project mention: A somewhat faster, more lightweight, ripgrep-inspired alternative | news.ycombinator.com | 2024-08-28

    I tried finding other cases where `gg` is meaningfully faster, but I didn't turn anything up.

    Now, grip-grab is using the same libraries as ripgrep. So why doesn't it have the same performance profile as ripgrep? That is harder to answer, but it's likely not using the libraries in the best way possible. That's largely my failing, since the libraries are poorly documented, complex and sprawling.

    [1]: https://github.com/alexpasmantier/grip-grab/blob/92cc5f6dc2f...

  13. bogrep

    Grep your bookmarks

  14. grepq

    quickly filter fastq files by matching sequences to a set of regex patterns

    Project mention: Grepq: Quickly Filter Fastq Files | news.ycombinator.com | 2025-01-14
  15. spacemod

    An easy to understand and powerful text search-and-replace tool

  16. fgr

    Find & GRep program

  17. perg

    Grep implementation in rust.

  18. grab

    An attempt at making a simple clone of grep(1) using Rust. (by selectiveduplicate)

  19. mamegrep

    An interactive terminal interface for `$ git grep` to easily edit search patterns and view results

    Project mention: Show HN: Mamegrep – TUI tool for `$ Git grep` | news.ycombinator.com | 2025-02-25
  20. titan

    TITAN, Tiny and Intuitive Text Analysis tool for Rust-based patterns (by dpouris)

  21. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Rust Grep discussion

Log in or Post with

Rust Grep related posts

Index

What are some of the best open-source Grep projects in Rust? This list will help you:

# Project Stars
1 ripgrep 51,741
2 ast-grep 8,472
3 amber 878
4 srgn 724
5 sig 634
6 teip 581
7 hgrep 474
8 ruplacer 465
9 fltr 381
10 so_stupid_search 173
11 grip-grab 119
12 bogrep 104
13 grepq 52
14 spacemod 45
15 fgr 18
16 perg 14
17 grab 5
18 mamegrep 5
19 titan 2

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that Rust is
the 5th most popular programming language
based on number of references?