|
|
|
|
|
by llimllib
1497 days ago
|
|
xsv does similar stuff for CSV, and very rapidly: https://github.com/BurntSushi/xsv https://miller.readthedocs.io/en/latest/why/ has a nice section on "why miller": > First: there are tools like xsv which handles CSV marvelously and jq which handles JSON marvelously, and so on -- but I over the years of my career in the software industry I've found myself, and others, doing a lot of ad-hoc things which really were fundamentally the same except for format. So the number one thing about Miller is doing common things while supporting multiple formats: (a) ingest a list of records where a record is a list of key-value pairs (however represented in the input files); (b) transform that stream of records; (c) emit the transformed stream -- either in the same format as input, or in a different format. |
|
https://github.com/jqnatividad/qsv