💾 Archived View for freeshell.de › tldr › mlr.gmi captured on 2022-06-11 at 22:12:12. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
Miller is like `awk`, `sed`, `cut`, `join`, and `sort` for name-indexed data such as CSV, TSV, and tabular JSON.
mlr --icsv --opprint cat {example.csv}
echo '{"hello":"world"}' | mlr --ijson --opprint cat
mlr --icsv --opprint sort -f {field} {example.csv}
mlr --icsv --opprint sort -nr {field} {example.csv}
mlr --icsv --ojson put '${newField1} = ${oldFieldA}/${oldFieldB}' {example.csv}
echo '{"hello":"world", "foo":"bar"}' | mlr --ijson --ojson --jvstack cat
mlr --prepipe 'gunzip' --csv filter -S '${fieldName} =~ "{regular_expression}"' {example.csv.gz}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).