3 ms·
https://github.com/johnkerl/miller https://github.com/johnkerl/miller Miller (mlr) is now my goto tool for csv/tsv manipulation. I've used it from time to time
by mooss 7y ago
https://github.com/johnkerl/miller https://github.com/johnkerl/miller
Miller (mlr) is now my goto tool for csv/tsv manipulation.
I've used it from time to time during the past year and it's been a joy to use.
I must admit that I did not try any other tool for the purpose so I don't know how it compares.
It has a nice verb system, verbs can be combined with "then" statements : https://johnkerl.org/miller/doc/reference-verbs.html https://johnkerl.org/miller/doc/reference-verbs.html .
There is also a small DSL to use with the "put" and "filter" verbs: https://johnkerl.org/miller/doc/reference-dsl.html https://johnkerl.org/miller/doc/reference-dsl.html .
Another verb I find very useful is "join", which does pretty much what you would expect it to do.