Miller

John Kerl·Miller.Miller

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

Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON. You get to work with your data using named fields, without needing to count positional column indices. This is something the Unix toolkit always could have done, and arguably always should have done. It operates on key-value-pair data while the familiar Unix tools operate on integer-indexed fields: if the natural data structure for the latter is the array, then Miller’s natural data structure is the insertion-ordered hash map. This encompasses a variety of data formats, including but not limited to the familiar CSV, TSV, and JSON. (Miller can handle positionally-indexed data as a special case.) ## Features - Miller is multi-purpose: it’s useful for data cleaning, data reduction, statistical reporting, devops, system administration, log-file processing, format conversion, and database-query post-processing. - You can use Miller to snarf and munge log-file data, including selecting out relevant substreams, then produce CSV format and load that into all-in-memory/data-frame utilities for further statistical and/or graphical processing. - Miller complements data-analysis tools such as R, pandas, etc.: you can use Miller to clean and prepare your data. While you can do basic statistics entirely in Miller, its streaming-data feature and single-pass algorithms enable you to reduce very large data sets. - Miller complements SQL databases: you can slice, dice, and reformat data on the client side on its way into or out of a database. (Examples here and here). You can also reap some of the benefits of databases for quick, setup-free one-off tasks when you just need to query some data in disk files in a hurry. - Miller also goes beyond the classic Unix tools by stepping fully into our modern, no-SQL world: its essential record-heterogeneity property allows Miller to operate on data where records with different schema (field names) are interleaved. - Miller is streaming: most operations need only a single record in memory at a time, rather than ingesting all input before producing any output. For those operations which require deeper retention (sort, tac, stats1), Miller retains only as much data as needed. This means that whenever functionally possible, you can operate on files which are larger than your system’s available RAM, and you can use Miller in tail -f contexts. - Miller is pipe-friendly and interoperates with the Unix toolkit - Miller’s I/O formats include tabular pretty-printing, positionally indexed (Unix-toolkit style), CSV, JSON, and others - Miller does conversion between formats - Miller’s processing is format-aware: e.g. CSV sort and tac keep header lines first - Miller has high-throughput performance on par with the Unix toolkit - Not unlike jq (for JSON), Miller is written in portable, modern C, with zero runtime dependencies. You can download or compile a single binary, scp it to a faraway machine, and expect it to work.

winget install --id Miller.Miller --exact --source winget

Latest 6.23.1·November 28, 2026

Release Notes

6.23.1 is mainly a security release that also picks up a few user-facing fixes and features.

Security

Fixes shell command injection via input filenames with --prepipe, --prepipex, and the .mlrrc --prepipe-* options. See https://github.com/johnkerl/miller/security/advisories/GHSA-w87w-7j8j-xrrg. Thanks to @kta1kri for the report. Users of --prepipe or --prepipex should upgrade.

Other changes

• YAML input keeps the document's key order:https://github.com/johnkerl/miller/pull/2329 • unsparsify --from-header fills short, ragged rows using the input header's fields:https://github.com/johnkerl/miller/pull/2308 • strptime robustness:guards against short input, and checks trailing literals after %e: https://github.com/johnkerl/miller/pull/2330 • Docs:clarifies that datetime names are English-only and that some formats are fixed: https://github.com/johnkerl/miller/pull/2333, plus a typo fix in https://github.com/johnkerl/miller/pull/2315

Project and infrastructure • SECURITY.md with private vulnerability reporting instructions:https://github.com/johnkerl/miller/pull/2331 • The regression harness now actually runs the non-windows cases:https://github.com/johnkerl/miller/pull/2332 • Releaser script robustness:https://github.com/johnkerl/miller/pull/2323 • Dependabot bumps: • klauspost/compress 1.20.5:https://github.com/johnkerl/miller/pull/2326 • codeql-action:https://github.com/johnkerl/miller/pull/2325 • yaml/v3 3.0.6:https://github.com/johnkerl/miller/pull/2324

New Contributors

• @SamuelLarkin made their first contribution in https://github.com/johnkerl/miller/pull/2315 • @minilan677-netizen made their first contribution in https://github.com/johnkerl/miller/pull/2329 • @aloneangel45 made their first contribution in https://github.com/johnkerl/miller/pull/2330 • @Assertive-xxh made their first contribution in https://github.com/johnkerl/miller/pull/2308

Full Changelog

https://github.com/johnkerl/miller/compare/v6.23.0...v6.23.1

Installer type: zip

x86—AD0842DB3E23833EDA0B4E1D571B5B723999FEA4FCD45E2A3CB2DB96F6C16353
x64—260CE6677D62A4EBD527211B7279D020192CF9365DEB33548E3D51C70066CF2D
arm64—1F24B2902C27C4E02173DF868C0C547536B280FD52E7F6F9F56CE1C5C48DFB0E

Details

Homepage
https://github.com/johnkerl/miller
License
BSD-2-Clause
Publisher
John Kerl
Support
https://github.com/johnkerl/miller/issues
Moniker
miller

Tags

csvcsv-formatdata-cleaningdata-processingdata-reductiondata-regressiondevopsdevops-toolsjsonjson-datastatistical-analysisstatisticsstreaming-algorithmsstreaming-datatabular-datatsv

Older versions (9)

6.23.0
x86—ABEA69C1A7DE0D464D53F67B30B900D0BAEAE861405C151ABAD40EFFCA4DFE11
x64—8192FBC5E959637F4112B34DCFDC518C1B59701BC34777CA528DC749ECE15A1A
arm64—86A14238D63D441E10A1D979A882AFC444EEDC291F5C98D8650A8F9B40162CBC
6.22.0
x86—A397AD3FE4AC7B7730ABCCF55562692419CB067F222C4D1F85768EC1B548D631
x64—A8B7F5FE321528D181C771948F631115B9C17A8EBDF1C5809DE835349A9DD304
arm64—451949350EFD6EF1357EFC2E2D5A265F1FF3FC47AA27878707560C6EE8A001C1
6.21.0
x86—042AB83E1B7DAE4D5CD37517EFD52F7E2D034A74211F3B07D87E5D4E97E3D957
x64—E4730FAFCE659DB22C619C0FDE51EBA050EDC584A0804FD2C8B2883C8F8D8250
arm64—2F50142276A2058D00742335842831C987CB1961390A7CE7084EEE2DA6E7F7D5
6.20.2
x86—84095BEFDD5827980632034F89B6FE05F9B449FD72DF356C86B3864F5DB4EADC
x64—C49CB6C1DD3A5A8C7B63F64E6758C910CAF4B4B2AAE040E75946AAA5BFF77B6D
arm64—680B999682A9C62EDB4A2DE0DF2B6617B447CB3B003B5CBCC77128E7A97F1E97
6.13.0
x86—D530685B203D31DC115C4E768802D7D6BCB889CFA4DD7C1534DFA37D8B440D1B
x64—A712A31845369AED737519B22B233CE70E1451DA2957E5A048C89693A97B39FC
6.12.0
x86—D2F5BE120095D9E077AEA206E2158255C5F882487EAF0C9E72E47E35708C5236
x64—52C755E01E5C25B1F5505C49B0604E259CDDF14F68784AA779CB276B33948B49
6.11.0
x86—CBA4A2DA0DCE1087C92A4CAEFE76986580139683E45FD3B64EF8103BF35C31CC
x64—AC261B3BB6444780F06406814E687D9072C26C2B72DD924CFB8A68F609ADD2A8
6.10.0
x86—E5E7121C6962E0A9678F539D3C77B505D7CE4497721EAD4EF4B2B54010575D00
x64—82F0204B3E54AB0D201CAEB6B78186710BC03941373C55272082DA473130685B
6.9.0
x86—574BD27CC6F70548FF9CCF7FCB0041E28BC5D5F9458CBC3662B209785902B3DB
x64—B28CBB2517BE4CBF57A3D3AA69A6E643157091561924E6C0382A62A03C89FB80