Better HN
topnewbestaskshowjobs
Log inSign up

adren67

2 karma · joined Jun 21, 2022 (4y ago) · 2 submissions

Submissions

comment 4y ago · link · parent

I completely agree that rg/ripgrep is a way better alternative to most grep implementations including GNU grep not only in terms of feature

check https://beyondgrep.com/feature-comparison/ for a detailed comparison

but also in terms of speed, including the fact that ripgrep allows greping by default in compress files, many different encoding and more!

This software is really a must-have for anyone who spends some time on the CLI

comment 4y ago · link · parent

Miller is also a great tool to do computation, transformations on CSV/TSV/JSON/SQLite files...

Here is the way to pretty-print the same result with mlr:

mlr --icsv --opprint --barred stats1 -a count,mean -f total_amount -g passenger_count then sort -f passenger_count taxi.csv