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
20082026
-
▲ 6
Show HN: Jurl – curl that reads the page for youstory by rayoplateado · 2026-10-05 · 2 comments
-
…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.…
comment by Rendello · 2026-09-11 · in Bitap: My favorite string matching algorithm -
…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…
comment by masklinn · 2026-08-28 · in Don't use musl if you care about performance -
…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... )
comment by masklinn · 2026-08-01 · in RipGrep musl binaries occasionally segfault during very-large searches -
…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... [...]"
comment by derdi · 2026-08-01 · in RipGrep musl binaries occasionally segfault during very-large searches -
…there, convenient). ripgrep actually sets jemalloc as global allocator when built for 64b musl: https://github.com/BurntSushi/ripgrep/blob/435f59fc4b43af3ab...
comment by masklinn · 2026-08-01 · in RipGrep musl binaries occasionally segfault during very-large searches -
▲ 283
RipGrep musl binaries occasionally segfault during very-large searchesstory by throwaway2037 · 2026-08-01 · 195 comments
-
…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 |…
comment by burntsushi · 2026-05-28 · in Bttf is a command line datetime Swiss army knife -
▲ 106
Ripgrep AI Policystory by singiamtel · 2026-05-27 · 23 comments
-
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 -
▲ 2
Tell HN: Fastmod Is Nicestory by gchamonlive · 2026-04-29 · 0 comments
-
…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...
comment by kstrauser · 2026-03-24 · in Ripgrep is faster than grep, ag, git grep, ucg, pt, sift (2016) -
…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.
comment by masklinn · 2026-03-24 · in Ripgrep is faster than grep, ag, git grep, ucg, pt, sift (2016) -
…-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...
comment by nextaccountic · 2026-03-18 · in Yes, all longest regex matches in linear time is possible -
…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 -
…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 -
…'!/.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 -
…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 -
…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 -
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 -
▲ 476
Ripgrep 15.0story by robin_reala · 2025-10-18 · 113 comments
-
▲ 12
ripgrep 15.0.0story by weinzierl · 2025-10-16 · 0 comments
-
▲ 11
Ripgrep 15 Releasedstory by burntsushi · 2025-10-16 · 2 comments
-
…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 -
…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 -
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).
comment by cesarb · 2025-09-16 · in Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised -
…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] -
…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…
comment by craftkiller · 2025-09-07 · in Stop writing CLI validation. Parse it right the first time -
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…
comment by craftkiller · 2025-09-07 · in Stop writing CLI validation. Parse it right the first time -
…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 -
…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) -
…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.
comment by burntsushi · 2025-03-20 · in fd: A simple, fast and user-friendly alternative to 'find' -
…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. -…
comment by nindalf · 2025-03-13 · in I stopped everything and started writing C again -
…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...
comment by forgotpwd16 · 2025-03-11 · in Show HN: Krep a High-Performance String Search Utility Written in C -
…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 -
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 -
…* 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
comment by xpe · 2024-11-06 · in Useful built-in macOS command-line utilities -
…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…
comment by burntsushi · 2024-09-28 · in fd - A simple, fast and user-friendly alternative to 'find' -
…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
comment by sgarland · 2024-09-14 · in Techniques I use to create a great user experience for shell scripts -
…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 -
…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…
comment by burntsushi · 2024-08-28 · in Show HN: A somewhat faster, more lightweight, ripgrep-inspired alternative -
…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% -
…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 -
https://github.com/BurntSushi/ripgrep ???
comment by mcepl · 2024-05-23 · in Amber: A code search and replace tool -
▲ 3
Ripgrep: Recursively Searches Directories for a Regexstory by tosh · 2024-05-13 · 0 comments
-
…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
comment by srhtftw · 2024-04-17 · in Ask HN: What software sparks joy when using? -
…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 -
▲ 3
Ripgrepstory by tosh · 2024-02-25 · 0 comments
-
…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 -
…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
comment by burntsushi · 2024-01-01 · in Ugrep – a more powerful, fast, user-friendly, compatible grep