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. In the same vein as silver searcher, I'd mention ripgrep: https://github.com/BurntSushi/ripgrep
  2. …still get instant startup. Ripgrep is one of the most popular Rust CLI tools. It has ~2MB binaries: https://github.com/BurntSushi/ripgrep/releases (except the windows GNU variant which is 8MB for some reason, but a ~2MB windows MSVC…
    comment by nicoburns · 2020-05-28 · in Rust is not a good C replacement (2019)
  3. ripgrep can actually do this seamlessly with its preprocessors: https://github.com/BurntSushi/ripgrep/blob/b72ad8f8aa897191c...
  4. Throw in those, + fd[0] and rg[1] 0: https://github.com/sharkdp/fd 1: https://github.com/BurntSushi/ripgrep
  5. …than Unix-style globs), or to just implement its own globbing. There is a ticket tracking it: https://github.com/BurntSushi/ripgrep/issues/234 I've done a lot of work to make ripgrep work well on Windows. But haven't done this. You can…
  6. shoutout to [RipGrep]( https://github.com/BurntSushi/ripgrep ), which is generally faster, has more intelligent defaults (searches cwd by default, ignores files matching .gitignore), and can search through only certain text files (like…
  7. …of software expertise, is to make what I consider to be "easy" be as much output as possible. [0]: https://github.com/BurntSushi/ripgrep
    comment by robenkleene · 2020-04-17 · in Customizing Your Shell
  8. …that says it "aims to kill grep"? That definitely wasn't my intention. grep still has a place. See https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#int... and https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#can...
    comment by burntsushi · 2020-04-10 · in SIMD instructions
  9. Right, yes. It's a common enough mistake that it has its own FAQ entry now. :-) https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#int...
    comment by burntsushi · 2020-04-10 · in SIMD instructions
  10. More context: https://github.com/BurntSushi/ripgrep/issues/1488
  11. Some `ripgrep` vs. `grep` performance comparisons (mine) here. https://github.com/BurntSushi/ripgrep/issues/113#issuecommen...
    comment by vstuart · 2020-03-19 · in Fast Searching with Ripgrep
  12. …like this to ripgrep. If folks have opinions on how it should work, I'd love to hear from you! https://github.com/BurntSushi/ripgrep/issues/1497
    comment by burntsushi · 2020-03-12 · in How Google Code Search Worked (2012)
  13. …commit in ripgrep's history is what introduced memory map support and it used the `memmap` crate: https://github.com/BurntSushi/ripgrep/commit/403bb72a4dd7152... > albeit the CPU fan noises annoy my co-workers ripgrep is happy to be told…
  14. …memory maps, and if they fail to open, it will fall back to a more traditional buffering strategy: https://github.com/BurntSushi/ripgrep/blob/50d2047ae2c0ce2ed... ripgrep has always had a fast traditional buffering strategy using `read`…
  15. …been implemented in Go or Rust, e.g. I don't think I would choose C for such a task these days. https://github.com/BurntSushi/ripgrep https://github.com/sharkdp/bat https://github.com/jesseduffield/lazydocker https://github.com/ogham/exa…
    comment by mxschumacher · 2020-02-15 · in To become a good C programmer (2011)
  16. …should definitely keep using the silver searcher. I gave more details in a response on that issue: https://github.com/BurntSushi/ripgrep/issues/1481#issuecomme...
  17. Yeah and its also 10 times larger https://github.com/BurntSushi/ripgrep/issues/1481
  18. …Read the man page or user guide. It's not grep, it's better and already has saner defaults. https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md
  19. For grepping, rg is faster and saner. https://github.com/BurntSushi/ripgrep On end-user systems with fast I/O, it is usually a better use of resources to have a battery-/suspend-/reboot-aware indexing system that has path/extension…
  20. Might be worth taking a look at ripgrep[1]. [1] https://github.com/BurntSushi/ripgrep
  21. …Something like the silver searcher ( https://github.com/ggreer/the_silver_searcher ) or ripgrep ( https://github.com/BurntSushi/ripgrep ) have the advantage that they have laser-focus in what they want, and designed to take advantage of…
    comment by jaimebuelta · 2020-01-27 · in Performance First
  22. …and now it looks like Rec is the next ingredient to experiment with. FZF and moreso Ripgrep https://github.com/BurntSushi/ripgrep has been really great to add to the mix.
    comment by rasengan0 · 2020-01-26 · in GNU Recutils
  23. …replacement. Despite that, it can certainly replace grep in a wide variety of use cases. See: https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#pos...
    comment by burntsushi · 2020-01-16 · in My C code works with -O3 but not with -O0
  24. …This look super cool. I'm a Windows guy but have been using terminal more lately with tools like https://github.com/BurntSushi/ripgrep https://github.com/sharkdp/bat https://github.com/sharkdp/fd and they work great on Windows (plus are…
  25. Yeah so many CLI tools in Rust: https://github.com/sharkdp/fd/ https://github.com/sharkdp/bat https://github.com/BurntSushi/ripgrep https://github.com/ogham/exa
  26. …your .gitignore by default. I’ll give this a try before adding something to my .vimrc again. 1. https://github.com/BurntSushi/ripgrep
    comment by imjasonmiller · 2019-12-03 · in The Plain Text Project
  27. …said, the preview window in combination with being able to browse large directories a breeze. 1 = https://github.com/BurntSushi/ripgrep
    comment by dwrodri · 2019-12-02 · in Fzf: A command-line fuzzy finder
  28. ripgrep [Discussion] Fuzzy Search https://github.com/BurntSushi/ripgrep/issues/1053
    comment by TheGrassyKnoll · 2019-08-22 · in Levenshtein Distance
  29. …your own horn, and you saved me many hours of not waiting for searches, I'll link to ripgrep here https://github.com/BurntSushi/ripgrep
  30. …was recently going through the source code to learn how to build production quality Rust apps! ( https://github.com/BurntSushi/ripgrep )
  31. …tool that has been created by leveraging Rust and it's from BurntSushi[1] who is excellent. 0: https://github.com/BurntSushi/ripgrep 1. https://github.com/BurntSushi
  32. …by burntsushi, but especially xsv and ripgrep: xsv: https://github.com/BurntSushi/xsv ripgrep: https://github.com/BurntSushi/ripgrep His code typically has extensive tests, helpful comments, and logical structure. It was fun trying to…
  33. …bat[1]: Replace cat with better display and colours exa[2]: Replace ls with many more options [0]: https://github.com/BurntSushi/ripgrep [1]: https://github.com/sharkdp/bat [2]: https://github.com/ogham/exa I do not have any affiliation…
    comment by CiTyBear · 2019-07-17 · in A proactive approach to more secure code
  34. …. I think that lack of comparison is okay. The first commit to ripgrip was in 2016. https://github.com/BurntSushi/ripgrep/commit/9d1e619ff359b6e...
    comment by eesmith · 2019-06-27 · in CUDA Grep
  35. …ripgrep[0] or The Silver Searcher[1], both of which claim to be faster alternatives to grep. [0] https://github.com/BurntSushi/ripgrep [1] https://github.com/ggreer/the_silver_searcher
    comment by michaelmior · 2019-06-27 · in CUDA Grep
  36. …on how it worked for you, and in particular, which things were hard to figure out. [1] - https://github.com/BurntSushi/ripgrep/issues/1009
  37. …other preprocessors (like pdf) within them (second example in the above post and readme). [1]: https://github.com/BurntSushi/ripgrep/issues/918
  38. …configure ripgrep to use a `--pre` flag (which is what rga is doing :). See config and gist at https://github.com/BurntSushi/ripgrep/issues/1252
  39. …and causing the malloc call to fail. For more info, see `man 5 proc` and/or my exploration here: https://github.com/BurntSushi/ripgrep/issues/993#issuecommen... (It's all still a bit wishy washy, so I think your point still stands. But I…
    comment by burntsushi · 2019-06-10 · in Malloc Never Fails (2012)
  40. …it if you could update #513 with your environment. In particular, by answering these questions: https://github.com/BurntSushi/ripgrep/issues/513#issuecommen... If it's convenient and you could try it in a different environment (perhaps a…
    comment by burntsushi · 2019-05-22 · in Lsd: The next gen ls command
  41. …does. EDIT: actually found a bug report that seems to describe exactly the same problem. https://github.com/BurntSushi/ripgrep/issues/513
    comment by krick · 2019-05-22 · in Lsd: The next gen ls command
  42. …probably `--no-heading`. You can add it to a config file or an alias if you always want it enabled: https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#c...
    comment by burntsushi · 2019-05-21 · in Lsd: The next gen ls command
  43. …support .ignore. These can override whatever is in your .gitignore. See the guide for more details: https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#a... > Performance difference is not that much of a dealbreaker in practice This…
    comment by burntsushi · 2019-05-21 · in Lsd: The next gen ls command
  44. Try rg (ripgrep) over ag: https://github.com/BurntSushi/ripgrep
    comment by rlue · 2019-05-21 · in Lsd: The next gen ls command
  45. …for every job? No, but no tool is. [1]: https://github.com/ggreer/the_silver_searcher [2]: https://github.com/BurntSushi/ripgrep
  46. …theorizing. :-) If you want to try your own benchmarks in your own environment, then you can: https://github.com/BurntSushi/ripgrep/ On Linux at least, you do not need to do a clean reboot to measure something without cache. You can drop…
    comment by burntsushi · 2019-05-02 · in Use mmap with care
  47. Great! I filed an issue for it: https://github.com/BurntSushi/ripgrep/issues/1252
    comment by burntsushi · 2019-04-16 · in Ripgrep 11 Released
  48. …to whatever flags you want by creating a configuration file and defining `RIPGREP_CONFIG_PATH`: https://github.com/BurntSushi/ripgrep/blob/11.0.0/GUIDE.md#c... . Try putting `-uuu` in the file as burntsushi suggested.
    comment by roryokane · 2019-04-16 · in Ripgrep 11 Released
  49. …the commands being run are clear. You can even see the raw commands for the full benchmark suite: https://github.com/BurntSushi/ripgrep/blob/master/benchsuite... I realize doing benchmarks right is a lot of work. So if you just have a…
    comment by burntsushi · 2019-04-16 · in Ripgrep 11 Released
  50. …premise that drives other tools like `git grep`, ack and ag. ripgrep isn't alone here. See also: https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#pos... > And personally I would consider an antipattern to skip the gitignore…
    comment by burntsushi · 2019-04-16 · in Ripgrep 11 Released