Miller is likeawk
,sed
,cut
,join
, andsort
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).
=> CC-BY This content has been proxied by September (ba2dc).Proxy Information
text/gemini;lang=en-GB