this post was submitted on 08 Aug 2024
1511 points (99.2% liked)
Programming
17528 readers
261 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 [email protected]
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Pretty much every basic terminal command for linux. Grep is the one that comes to mind.
The modern man uses
ripgrep
๐But it's three more letters. No deal.
Its going installed binary is
rg
.I shall begrudgingly consider it then, with much begrudgement.
You joke but this is facts
Alias. To
gr
, even!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.