Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 2
    Searching only some specific file can be done like find . -iname '*finde_me*.md' -print0 | xargs -0 rg 'search term' Commented Aug 7, 2020 at 9:41
  • 16
    In that case, you might as well just use rg 'search term' -g '*finde_me*.md' :-) Commented Aug 7, 2020 at 13:17
  • Nice! Started using ripgrep a couple of weeks ago and it's truly amazing! Learning so much! Commented Aug 7, 2020 at 13:31
  • Is there a performance benefit in not using xargs, find, etc? Commented Aug 5, 2022 at 10:00
  • There might be, given that, e.g., find is single threaded and ripgrep is multi-threaded. Why not try both and compare them for your use case? Commented Aug 5, 2022 at 14:08