Whait what's that? I'm stuck with ag and {a..z}grep.
Whait what's that? I'm stuck with ag and {a..z}grep.
Alongside `fzf` and `fd` (a similar project for `find`) `rg` was what finally convinced me to put together a few shell scripts to bootstrap getting all my favorite modern command line tools on a new Ubuntu VM [1]. I'm working on an interactive playground you'll be able to SSH into to try it out yourself without even having to spin up your own, so you can see the difference with your own two eyes, no VM required.
At my previous job I often ended up searching raw log files sized around 5-8GB. Regular grep would grind away for 50-60 seconds, while ripgrep returned the same results in 250ms.
I was shocked the first time I used it and have sung it's praises since.
I have used (at different places) Graylog and Splunk, New Relic is also popular.
Not that ripgrep isn't awesome, but you could have dedicated indexing and a UI that can be shown to non-technical or at least semi-technical people to review logs whereas "Just use ripgrep" really isn't accessible for most users.
TBH more frequently I have "argument list too long" problem, than "one 5GB file" problem.
I'm curious (like others here) how `rak` is better than `rg`.
In contrast "rg" only designed to search text files, but it does that really really fast.
I makes sense to have both.
- support for --ignoremark, which means you 'e' will match any accented 'e', such as éëêèęėē.
Have you found folks using these particular Unicode features in practice? I don't think anyone has request it for ripgrep.
Well, but that's only one of the reasons why rak is a lot slower. There's something else going on, but I currently don't have the mindset to investigate this deeply.
rak is backed by the entirety of raku language and therefore is much easier for some crafting something that's less trivial to generalize in a one-liner. For most of grep-alike tools, their regex engine would be some sort of ceilings of what can be done but for rak, the ceiling is as tall as the raku programming language. That's rak's niche.