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. ▲ 6
    Show HN: Jurl – curl that reads the page for you
    story by rayoplateado · 2026-10-05 · 2 comments
  2. …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.…
  3. …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…
  4. …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... )
  5. …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... [...]"
  6. …there, convenient). ripgrep actually sets jemalloc as global allocator when built for 64b musl: https://github.com/BurntSushi/ripgrep/blob/435f59fc4b43af3ab...
  7. ▲ 283
    RipGrep musl binaries occasionally segfault during very-large searches
    story by throwaway2037 · 2026-08-01 · 195 comments
  8. …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 |…
  9. ▲ 106
    Ripgrep AI Policy
    story by singiamtel · 2026-05-27 · 23 comments
  10. 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
  11. ▲ 2
    Tell HN: Fastmod Is Nice
    story by gchamonlive · 2026-04-29 · 0 comments
  12. …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...
  13. …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.
  14. …-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...
  15. …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
  16. …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
  17. …'!/.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
  18. …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
  19. …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
  20. 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
  21. ▲ 476
    Ripgrep 15.0
    story by robin_reala · 2025-10-18 · 113 comments
  22. ▲ 12
    ripgrep 15.0.0
    story by weinzierl · 2025-10-16 · 0 comments
  23. ▲ 11
    Ripgrep 15 Released
    story by burntsushi · 2025-10-16 · 2 comments
  24. …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
  25. …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
  26. 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).
  27. …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]
  28. …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…
  29. 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…
  30. …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
  31. …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)
  32. …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.
  33. …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. -…
  34. …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...
  35. …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
  36. 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
  37. …* 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
  38. …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…
  39. …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
  40. …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
  41. …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…
  42. …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%
  43. …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
  44. https://github.com/BurntSushi/ripgrep ???
    comment by mcepl · 2024-05-23 · in Amber: A code search and replace tool
  45. ▲ 3
    Ripgrep: Recursively Searches Directories for a Regex
    story by tosh · 2024-05-13 · 0 comments
  46. …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
  47. …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
  48. ▲ 3
    Ripgrep
    story by tosh · 2024-02-25 · 0 comments
  49. …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
  50. …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