💾 Archived View for freeshell.de › tldr › mlr.gmi captured on 2024-05-10 at 12:16:32. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

mlr

Miller is like `awk`, `sed`, `cut`, `join`, and `sort` for name-indexed data such as CSV, TSV, and tabular JSON.

More information.

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).

CC-BY