Hacker GitHub

← All repos

BurntSushi/ripgrep

View on GitHub ↗ ★ 69,642 Rust

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

334 mentions on Hacker News by 196 people: 28 stories, 306 comments · first 2016-09-23 · latest 2026-10-05

Mentions per year 334 mentions · busiest year 2020 (45)
20082026
  1. …here [6]. 1. https://docs.rs/memchr/latest/memchr/ 2. https://docs.rs/regex/latest/regex/ 3. https://github.com/burntsushi/ripgrep 4. https://www.youtube.com/watch?v=wlvKAT7SZIQ 5. https://arxiv.org/pdf/1902.08318 6.…
  2. …global allocator on the Rust side, musl still uses its own allocator internally (as demonstrated by https://github.com/BurntSushi/ripgrep/issues/3494 ). And the compounding issue is that the allocator issues get significantly worse as…
  3. …it only does rust-level overriding as that was where musl's allocator was found to impact ripgrep ( https://github.com/BurntSushi/ripgrep/commit/03bf37ff4a29361... )
  4. …bug in the rg bundled with OpenAI Codex. That binary is byte-for-byte identical with the one in https://github.com/BurntSushi/ripgrep/releases/download/15.2... [...]"
  5. …there, convenient). ripgrep actually sets jemalloc as global allocator when built for 64b musl: https://github.com/BurntSushi/ripgrep/blob/435f59fc4b43af3ab...
  6. …and format it in my own bespoke way using strftime." Here's the full command (run from the root of https://github.com/BurntSushi/ripgrep ): $ git ls-files | bttf tag exec git log -n1 --format='%aI' | bttf time in system | bttf time sort |…
  7. Huh, funny. I always associated ripgrep with the find/grep replacement written in Rust: https://github.com/burntsushi/ripgrep Wonder if it was an intentional pun.
    comment by nostrademons · 2026-04-29 · in Alphabet Announces First Quarter 2026 Results
  8. …don't want to. You can create a config file[0] that says not to hide those files by default. [0] https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#c...
  9. …ignore files which are hidden (dotfiles) or excluded by ignore files (.gitignore, .ignore, …). See https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#a... for the details.
  10. …-automata/latest/regex_automata/meta/st... Ripgrep in turn exposes some knobs to tweak the heuristics https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#how...
  11. …years ago but it looks like a good overview that has aged well. > I happily downcast in ripgrep: https://github.com/BurntSushi/ripgrep/blob/0a88cccd5188074de ... > > That also shows the utility of an error chain. Yeah, I mean, that looks…
    comment by osiris88 · 2025-12-28 · in Rust errors without dependencies
  12. …from. > I'm kind of in the downcasting-is-a-code-smell camp anyways. I happily downcast in ripgrep: https://github.com/BurntSushi/ripgrep/blob/0a88cccd5188074de... That also shows the utility of an error chain.
    comment by burntsushi · 2025-12-28 · in Rust errors without dependencies
  13. …'!/.github/' > .ignore` in the root of your repository? That's what ripgrep's repo itself does: https://github.com/BurntSushi/ripgrep/blob/d47663b1b4548e4fa... There have been some requests to whitelist certain directories by default. And…
    comment by burntsushi · 2025-10-20 · in Ripgrep 15.0
  14. …that I install always: fd, a better find: https://github.com/sharkdp/fd ripgrep (rg) a modern grep: https://github.com/BurntSushi/ripgrep eza for ls replacement: https://github.com/eza-community/eza duf is a cleaner df:…
    comment by theshrike79 · 2025-10-20 · in Bat v0.26.0
  15. …arguments will search them automatically while still ignoring other hidden files/directories. [1]: https://github.com/BurntSushi/ripgrep/blob/38d630261aded3a8e...
    comment by burntsushi · 2025-10-18 · in Ripgrep 15.0
  16. Backcompat with what? ripgrep was, is and will never be POSIX compatible: https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#can... Aa for ugrep, flipping the question around would be more appropriate. ugrep has caught up with…
    comment by burntsushi · 2025-10-18 · in Ripgrep 15.0
  17. …filtering, set `RIPGREP_CONFIG_PATH` to point to a config file that contains `-uu`. Sources: - https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#c... - https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#a...
    comment by exdeejay_ · 2025-10-13 · in Modern Linux tools
  18. …files/directories and binary files. (To disable all automatic filtering by default, use rg -uuu.) https://github.com/BurntSushi/ripgrep
    comment by maleldil · 2025-10-13 · in Modern Linux tools
  19. One famous example is ripgrep ( https://github.com/BurntSushi/ripgrep ). Its Cargo.lock (which contains all direct and indirect dependencies) lists 65 dependencies (it has 66 entries, but one of them is for itself).
  20. …alternative that is pretty unproblematic to install in whatever environment I want: https://github.com/BurntSushi/ripgrep
    comment by pseudocomposer · 2025-09-14 · in macOS Tahoe is certified Unix 03 [pdf]
  21. …compiled for older major versions run on newer major versions. $ pkg install git rust $ git clone https://github.com/BurntSushi/ripgrep.git $ cd ripgrep $ RUSTFLAGS='-C target-feature=+crt-static' cargo build --release $ ldd…
  22. Don't let your dreams be dreams $ wget 'https://github.com/BurntSushi/ripgrep/releases/download/14.1.1/ripgrep-14.1.1-x86_64-unknown-linux-musl.tar.gz' $ tar -xvf 'ripgrep-14.1.1-x86_64-unknown-linux-musl.tar.gz' $ ldd…
  23. …does actually replace their usage of grep in some or all cases, depending on their usage patterns. https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#can...
    comment by burntsushi · 2025-06-18 · in Bzip2 crate switches from C to 100% Rust
  24. …indicating it's a grep replacement. I also tried to correct this 9 months ago too. See also: https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#pos... For anyone else following along at home, if you want ripgrep to search the same…
    comment by burntsushi · 2025-05-06 · in Replacing Kubernetes with systemd (2024)
  25. …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.
  26. …you cite some examples? There are plenty of counter-examples - ripgrep is 5-10x faster than grep ( https://github.com/BurntSushi/ripgrep/blob/962d47e6a1208cf21... ). There's a reason ripgrep is embedded within VS Code to power search. -…
  27. …Getting an error related to madvise(). Had to insert '-D_GNU_SOURCE' in Makefile's CFLAGS. [1]: https://github.com/BurntSushi/ripgrep/blob/master/benchsuite...
  28. …https://github.com/sharkdp/bat (Haven't used this one, but it's pretty popular) Where is 'grep'? https://github.com/BurntSushi/ripgrep Use this one often. It's fast af to search a directory of source code. Where is Korn Shell?…
    comment by LAC-Tech · 2025-02-23 · in OpenBSD Innovations
  29. I recommend giving ripgrep a try. (it's been around awhile now) https://github.com/BurntSushi/ripgrep
    comment by TheGrassyKnoll · 2024-11-17 · in Resolving a mysterious problem with find
  30. …* LSD (LSDeluxe) - rewrite of `ls` - https://github.com/lsd-rs/lsd * ripgrep - https://github.com/BurntSushi/ripgrep * fzf - command-line fuzzy finder that enhances file search, command history search, and more - https://github.com/juneg
  31. …to specifically. ripgrep even specifically calls out this exact use case right in its README: https://github.com/BurntSushi/ripgrep/?tab=readme-ov-file#wh... > You need a portable and ubiquitous tool. While ripgrep works on Windows, macOS…
  32. …ever change. There is always a way to get the information you need, even if it's more painful. [0]: https://github.com/BurntSushi/ripgrep [1]: https://github.com/sharkdp/fd [2]: https://github.com/junegunn/fzf
  33. …Expansion? ... that we get from people like you just building a thing you think is good. [0]: https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#can...
    comment by camgunz · 2024-09-11 · in The Modern CLI Renaissance
  34. …indeed start one thread per core. Where as gg will start 4. You can see ripgrep's heuristic here: https://github.com/BurntSushi/ripgrep/blob/e0f1000df67f82ab0... I suppose thread count heuristics are fair game for benchmarks, but in order…
  35. …their own base64 implementation. But as should be obvious, it doesn't prevent them from doing so: https://github.com/BurntSushi/ripgrep/blob/ea99421ec896fcc9a... Good dependency management is Pandora's box. It has been opened and it is…
    comment by burntsushi · 2024-08-24 · in I sped up serde_json strings by 20%
  36. …I think the spoiler here is the fact that ripgrep uses jemalloc when you build with musl on 64-bit: https://github.com/BurntSushi/ripgrep/blob/c9ebcbd8abe48c833... If you comment out those lines and remove the `jemallocator` dependency…
    comment by burntsushi · 2024-06-12 · in Swift Static Linux SDK
  37. https://github.com/BurntSushi/ripgrep ???
    comment by mcepl · 2024-05-23 · in Amber: A code search and replace tool
  38. …order: visidata - https://www.visidata.org just - https://github.com/casey/just ripgrep - https://github.com/BurntSushi/ripgrep macports - https://www.macports.org sloth - https://github.com/sveinbjornt/Sloth
  39. …kind this: - Learning about Ctrl+F, which works basically everywhere. - Transitioning to ripgrep https://github.com/BurntSushi/ripgrep - I wouldn't even call this optional, it's truly an incredible and very discoverable tool. Requires…
    comment by hiAndrewQuinn · 2024-04-11 · in Code search is hard
  40. …rust-gdext: https://github.com/godot-rust/gdext/blob/master/godot-core/C... ripgrep: https://github.com/BurntSushi/ripgrep/blob/master/Cargo.toml socketio: https://github.com/1c3t3a/rust-socketio/blob/main/socketio/C...
    comment by Macha · 2024-01-05 · in Modern Java/JVM Build Practices
  41. …above and the timings are similar if a tiny bit slower.) [1]: https://github.com/radare/ired [2]: https://github.com/BurntSushi/ripgrep/discussions/2597
  42. …[3]: https://github.com/p-ranav/hypergrep/blob/ee85b713aa84e0050a... [4]: https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#why... [5]: https://github.com/BurntSushi/rebar/blob/96c6779b7e1cdd850b8...
  43. …It took 86 seconds to index a Linux kernel tree, while csearch's cindex tool took 8 seconds. [1] https://github.com/BurntSushi/ripgrep/issues/1497
  44. …account the things BurntSushi (ripgrep author) pointed out in the ripgrep issue link elsewhere ITT? https://github.com/BurntSushi/ripgrep/discussions/2597 Either way, ripgrep is awesome and I’m staying with it.
  45. Here's a thread on performance vs rg (ripgrep). https://github.com/BurntSushi/ripgrep/discussions/2597 didn't know about hypergrep either.
  46. …from one of my projects, where you can clearly see that not every commit has a green checkmark: https://github.com/BurntSushi/ripgrep/commits/master/ I run dozens of projects this way. I've never had a major issue because it just isn't a…
    comment by burntsushi · 2023-12-30 · in The merge vs. rebase debate
  47. Never will be: https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#pos... If you need drop-in compatibility with grep, then use grep. :-)
  48. …page. But that's now part of ripgrep proper. e.g., `rg --generate man` writes roff to stdout. [1]: https://github.com/BurntSushi/ripgrep/blob/2a4dba3fbfef944c5... [2]: https://github.com/BurntSushi/ripgrep/blob/2a4dba3fbfef944c5...
  49. …standard grep format and it doesn't interact nicely with contextual options like -C/--context. See: https://github.com/BurntSushi/ripgrep/issues/875
  50. …All of those things apply to me too.) With respect to compatibility, see my FAQ on the topic: https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#pos...