4 ms·
Not the gp, but I generally use ripgrep when I want to find something manually, and regular grep in a script.
by earenndil 8y ago
Not the gp, but I generally use ripgrep when I want to find something manually, and regular grep in a script.
- burntsushi 8y agoAh yeah, me too! That's a good one.
- vram22 8y agoWhy? Does ripgrep not work as well (or better) than grep in a script? And if so, why not? Or is because you deploy your scripts to other machines where ripgrep may not be present, but grep will?
- jolmg 8y agoScripts tend to be shared, so portability matters. grep alternatives, while great for interactive use, are generally not worth being an extra dependency to install.
- earenndil 8y agoGrep is: * Deterministic * Standard * Written in c * Equally performant (where it matters) * Doesn't show colour or line numbers unless I tell it to * Doesn't watch .gitignores unless I tell it to
- executesorder66 8y agoI use rg on all my scripts that I won't be sharing with others. Anything that needs to be used by other people / needs to be run on any machine that I don't control, uses grep instead.