this post was submitted on 08 Aug 2024
1490 points (99.1% liked)
Programming
17484 readers
66 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
What does that offer offer grep/egrep
much faster
proper unicode (and other encodings) support
automatic recursion (no extra flags needed)
can search inside compressed files/archives like gz/xz/zip (also see ripgrep-all) for even more archive support)
honors
.gitignore
and ignores binary/hidden filesprobably a lot more things too
Speed and memory efficiency, mostly. If you ever have to grep for something in a large number of files ripgrep will be done while regular grep will only be reaching the 25% mark.