CmdID

CmdID / Commands

mlr

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

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Pretty-print a CSV file in a tabular format

mlr --icsv --opprint cat example.csvIdentify

Receive JSON data and pretty print the output

echo '{"key":"value"}' | mlr --ijson --opprint catIdentify

Sort alphabetically on a field

mlr --icsv --opprint sort -f field example.csvIdentify

Sort in descending numerical order on a field

mlr --icsv --opprint sort -nr field example.csvIdentify

Convert CSV to JSON, performing calculations, and display those calculations

mlr --icsv --ojson put '$new_field1 = $old_field_a/$old_field_b' example.csvIdentify

Receive JSON and format the output as vertical JSON

echo '{"key1":"value1", "key2":"value2"}' | mlr --ijson --ojson --jvstack catIdentify

Filter lines of a compressed CSV file treating numbers as Strings

mlr --prepipe 'gunzip' --csv filter --infer-none '$field_name =~ "regex"' example.csv.gzIdentify