miller

CLI

Like awk/sed/cut/join/sort for name-indexed data (CSV, JSON, TSV).

Swiss-army knife for CSV/JSON/TSV — filter, transform, aggregate

3 curated recipes · not yet executed by the harness#csv#json#tsv#data-processing

Recipes

Curated from documentation and usage. Percentages are estimates, not measurements.

Filter CSV rows by condition

~97% est.
mlr --csv filter '$age > 30' data.csv

Compute stats grouped by column

~95% est.
mlr --csv stats1 -a mean,sum -f salary -g department data.csv

Convert CSV to JSON

~98% est.
mlr --c2j cat data.csv

Install

Homebrewbrew install miller

Agent notes

When to use
Processing structured data files with awk-like power
Quick examples
  • mlr --csv filter '$age > 30' data.csv
  • mlr --csv stats1 -a mean,sum -f salary -g department data.csv
  • mlr --json sort-within-records data.json

Use from an agent

curl -s https://clihub.com/api/tools/miller | jq '.agentHints.provenRecipes[] | {task, command, verified}'

Or call get_tool with slug miller on the MCP server at https://clihub.com/mcp.

Homepage ↗Repository ↗BSD-2-Clause0 views