Miller

System Utilities

Processes CSV, TSV and JSON records from the command line.

Latest v6.22.0 · by John KerlWritten in GoWebsitejohnkerl/millerRSS

Release activity

Release activity — 7 releases across 7 days in the last year. Each cell is one day; darker means more releases that day. Older weeks are hidden at this screen width.
AugSepOctNov
SundayNo releases on Jul 19, 2026No releases on Jul 26, 2026No releases on Aug 2, 2026No releases on Aug 9, 2026No releases on Aug 16, 2026No releases on Aug 23, 2026No releases on Aug 30, 2026No releases on Sep 6, 2026No releases on Sep 13, 2026No releases on Sep 20, 2026No releases on Sep 27, 2026No releases on Oct 4, 2026No releases on Oct 11, 2026No releases on Oct 18, 2026No releases on Oct 25, 2026No releases on Nov 1, 2026
MondayNo releases on Jul 20, 2026No releases on Jul 27, 2026No releases on Aug 3, 20261 release on Aug 10, 2026No releases on Aug 17, 2026No releases on Aug 24, 2026No releases on Aug 31, 2026No releases on Sep 7, 2026No releases on Sep 14, 2026No releases on Sep 21, 2026No releases on Sep 28, 2026No releases on Oct 5, 2026No releases on Oct 12, 2026No releases on Oct 19, 2026No releases on Oct 26, 2026No releases on Nov 2, 2026
TuesdayNo releases on Jul 21, 2026No releases on Jul 28, 2026No releases on Aug 4, 2026No releases on Aug 11, 2026No releases on Aug 18, 2026No releases on Aug 25, 2026No releases on Sep 1, 2026No releases on Sep 8, 2026No releases on Sep 15, 2026No releases on Sep 22, 2026No releases on Sep 29, 2026No releases on Oct 6, 2026No releases on Oct 13, 2026No releases on Oct 20, 2026No releases on Oct 27, 2026No releases on Nov 3, 2026
WednesdayNo releases on Jul 22, 2026No releases on Jul 29, 2026No releases on Aug 5, 2026No releases on Aug 12, 2026No releases on Aug 19, 2026No releases on Aug 26, 2026No releases on Sep 2, 2026No releases on Sep 9, 2026No releases on Sep 16, 2026No releases on Sep 23, 2026No releases on Sep 30, 2026No releases on Oct 7, 2026No releases on Oct 14, 2026No releases on Oct 21, 2026No releases on Oct 28, 2026No releases on Nov 4, 2026
ThursdayNo releases on Jul 23, 2026No releases on Jul 30, 2026No releases on Aug 6, 2026No releases on Aug 13, 2026No releases on Aug 20, 2026No releases on Aug 27, 2026No releases on Sep 3, 2026No releases on Sep 10, 2026No releases on Sep 17, 2026No releases on Sep 24, 2026No releases on Oct 1, 2026No releases on Oct 8, 2026No releases on Oct 15, 2026No releases on Oct 22, 2026No releases on Oct 29, 2026No releases on Nov 5, 2026
FridayNo releases on Jul 24, 2026No releases on Jul 31, 2026No releases on Aug 7, 2026No releases on Aug 14, 2026No releases on Aug 21, 2026No releases on Aug 28, 2026No releases on Sep 4, 2026No releases on Sep 11, 2026No releases on Sep 18, 20261 release on Sep 25, 2026No releases on Oct 2, 2026No releases on Oct 9, 2026No releases on Oct 16, 2026No releases on Oct 23, 2026No releases on Oct 30, 2026No releases on Nov 6, 2026
SaturdayNo releases on Jul 25, 2026No releases on Aug 1, 2026No releases on Aug 8, 2026No releases on Aug 15, 2026No releases on Aug 22, 2026No releases on Aug 29, 2026No releases on Sep 5, 2026No releases on Sep 12, 2026No releases on Sep 19, 2026No releases on Sep 26, 2026No releases on Oct 3, 2026No releases on Oct 10, 2026No releases on Oct 17, 2026No releases on Oct 24, 2026No releases on Oct 31, 2026

7 releases in the last year

Changelog

v6.22.0Latest

v6.22.0: Unicode-boxed I/O format, XDG spec, `datediff` DSL function

Added 5
  • Add datediff DSL function
  • Support XDG Base Directory spec for location of .mlrrc
  • reshape: add -S/-n to sort new wide-field keys in long-to-wide
  • Support Unicode-boxed I/O format: tabular with UTF-8 markers
  • Add scoped make gosec target for security scanning
Changed 9
  • Batch-stream mlr seqgen output for head-friendliness
  • Update Go version in golangci-lint workflow from 1.25 to 1.26
  • Update dependency github.com/stretchr/testify from 1.11.1 to 1.12.1
  • Update dependency golang.org/x/text from 0.40.0 to 0.42.0
  • Update dependency github.com/klauspost/compress from 1.19.2 to 1.20.0
  • Update dependency golang.org/x/sys from 0.47.0 to 0.48.0
Fixed 3
  • Fix I/O flag clash
  • Fix CI Go versions
  • Fix dead links in README

From Miller

What's Changed

Features

  • Add datediff DSL function by @johnkerl in #2221
  • Support XDG Base Directory spec for location of .mlrrc by @johnkerl in #2215
  • Batch-stream mlr seqgen output for head-friendliness by @johnkerl in #2230
  • reshape: add -S/-n to sort new wide-field keys in long-to-wide (#1646) by @ChrisJr404 in #2235
  • Support Unicode-boxed I/O format: tabular with UTF-8 markers by @johnkerl in #2253

Fixes

  • Fix I/O flag clash by @johnkerl in #2254

Build, CI & tooling

  • Add scoped make gosec target for security scanning by @johnkerl in #2223
  • Go 1.25 -> 1.26 in .github/workflows/golangci-lint.yml by @johnkerl in #2245
  • Fix CI Go versions by @johnkerl in #2246

Docs

  • docs: fix dead links in README by @1t1sCooL in #2238

Dependency updates

  • Bump the codeql-action group with 3 updates by @dependabot[bot] in #2234, #2237, #2239, #2251, #2252
  • Bump github.com/stretchr/testify from 1.11.1 to 1.12.0 by @dependabot[bot] in #2232
  • Bump github.com/stretchr/testify from 1.12.0 to 1.12.1 by @dependabot[bot] in #2236
  • Bump golang.org/x/text from 0.40.0 to 0.41.0 by @dependabot[bot] in #2233
  • Bump golang.org/x/text from 0.41.0 to 0.42.0 by @dependabot[bot] in #2249
  • Bump github.com/klauspost/compress from 1.19.2 to 1.20.0 by @dependabot[bot] in #2243
  • Bump golang.org/x/sys from 0.47.0 to 0.48.0 by @dependabot[bot] in #2244
  • Bump golang.org/x/term from 0.45.0 to 0.46.0 by @dependabot[bot] in #2250
  • Bump github.com/modelcontextprotocol/go-sdk from 1.7.0 to 1.8.0 by @dependabot[bot] in #2248

New Contributors

  • @ChrisJr404 made their first contribution in #2235
  • @1t1sCooL made their first contribution in #2238

Full Changelog: https://github.com/johnkerl/miller/compare/v6.21.0...v6.22.0

View originalPermalink
How v6.22.0 went
v6.21.0

v6.21.0 New verbs and DSL features

Added 10
  • New `mlr rank` verb
  • New `sparkline` DSL function and verb
  • New `bootstrap-ci` verb for bootstrap-resampling confidence intervals
  • Sliding-window mode for `stats1 -w {n}`
  • More `step -a` back-reference options
  • Positional placeholders (`{1}`, etc.) in the `format` DSL function
Changed 1
  • YAML now follows JSON's auto-flatten and auto-unflatten behavior
Fixed 10
  • `tee` and `split` no longer leak downstream mutations into side-output files
  • Float formatting such as 004.56 now emits valid JSON numbers
  • `--ors crlf` is now honored for CSV output
  • `reorder -r` groups matched fields by regex order rather than record order
  • Dedupe-field-names no longer clobbers values on ragged short rows
  • `--skip-trivial-records` now exits 0 on trailing blank CSV/TSV lines
View originalRead the notes
How v6.21.0 went
v6.20.2

Miller 6.20.2: Miller and AI, bash/zsh tab-completion, bytes datatype

Added 14
  • Miller treats AI agents as first-class users, with structured built-in features for discovering functions, learning data shape, validating expressions, and recovering from errors, packaged for MCP-speaking agents via a one-line setup
  • Machine-readable help catalog available via mlr help --as-json
  • JSON capability index and mlr which intent router
  • Structured verb options with enum value-sets
  • Structured error output via --errors-json, with hints and did-you-mean suggestions
  • DSL validate/dry-run via mlr put --explain and mlr filter --explain
Changed 2
  • Lint fixes bringing staticcheck and errcheck findings to zero
  • Dead code stripped from pkg/
Fixed 1
  • Masked unset-on-array error path
View originalRead the notes
How v6.20.2 went
v6.19.0

Miller 6.19.0: Performance improvements

Added 1
  • The --omd-aligned flag provides column-padded markdown output
Changed 8
  • Lazy per-record hashing yields roughly 15-30% faster performance on common workloads
  • Batch-arena field allocation is used for line-based readers
  • Per-record objects are batch-allocated and the CSV writer reuses its field buffer
  • DSL stack frames are pooled across records, giving about 8-9% performance improvement on mlr put
  • DSL stack-frame sets are pooled across UDF and subroutine calls, giving about 31% performance improvement on function-heavy mlr put
  • Redundant deep-copy of UDF return values is dropped, giving about 3-16% performance improvement on UDFs in mlr put
  • Scalar locals and parameters are bound by reference rather than by copy, giving about 4-9% improvement on DSL
  • The cat verb is used by default when no verb is supplied
Fixed 6
  • Data dropped from ragged implicit-header TSV and CSV-lite input is no longer lost
  • Column alignment is corrected for wide and combining Unicode characters
  • Join prefixes and rename are applied to unpaired records
  • PPRINT alignment is corrected when using multi-character OFS
  • Empty-string keys are allowed in JSON and YAML input
  • Exponential memory use when chaining seqgen is resolved
View originalRead the notes
How v6.19.0 went
v6.18.1

Miller 6.18.1: DKVPX file format; misc. features and bugfixes

Added 7
  • DKVPX file format support
  • hasvalue builtin function for value existence checks
  • Fixed-width input support for the PPRINT reader
  • Unicode printing support for barred output
  • Regex-based field selection for mlr sort-within-records
  • LRU caching for mlr split
  • Experimental mlr script mode
Changed 3
  • Upgraded to Go 1.25
  • Replaced GOCC parser-generator with PGPG
  • Simplified positional-indexing syntax in mlr.bnf with logic moved to Go source
Fixed 8
  • stats1 null_count with --fr regex now gives correct results
  • Inconsistent mapexcept behavior
  • PPRINT barred reader over-reading an extra column with ragged and implicit headers
  • YAML output now preserves key order
  • Crash on array compare when arrays contain absent values
  • Race condition in mlr step
  • sub and gsub correctly handle "\n" in replacement
  • Windows CI failure
View originalRead the notes
How v6.18.1 went
v6.17.0

Miller 6.17.0: YAML and DCF file formats; performance improvements; bugfixes

Added 5
  • Support YAML I/O
  • Add DCF (Debian Control Format) as supported file type
  • Add mlr reorder -r option
  • Add -r (for regex field-name matching) to mlr nest
  • Add --folder option to mlr split
Changed 8
  • Replace list.List with Go slices for performance improvement
  • Minor performance improvement for stats1
  • Performance and style fixes
  • Require that filter expressions be boolean (or absent)
  • Use GOCC fork for codegen performance improvement
  • Simplify the internal AST API
  • Genericize lib.OrderedMap
  • Improve error propagation
Fixed 7
  • Fix strptime with zero-padded and non-zero-padded months/days
  • Fix bug with both %f and %z in strptime
  • Improve parsing of variable-length fractional seconds using strptime
  • Fix mlr -i nonesuch cat incorrectly reporting mlr: empty IRS
  • Prevent mlr repl from exiting when a function is not found
  • Exit on control-C in mlr repl
  • Handle control-C in mlr repl
Security 1
  • Bump golang.org/x/crypto from 0.40.0 to 0.45.0
View originalRead the notes
How v6.17.0 went
v6.16.0

Miller 6.16.0: Snap support via `snap install miller`

Added 3
  • Installable on Linux arm64 and amd64 via snap install miller
  • Support -o jsonl as well as --ojsonl output format flag
  • Snap packaging for Miller created
Changed 2
  • Snap executable is named miller rather than mlr, for Snap only
  • Allow any Go 1.24 version to build Miller
Fixed 2
  • Fixed the go install command
  • Fixed README
View originalRead the notes
How v6.16.0 went
v6.15.0

Miller 6.15.0: Fix double quotes in CSV comments and `mlr -I` mode preservation; `sort -b`

Added 3
  • Added `mlr sort -b` feature
  • Added scoop install instructions to README.md
  • Added DKVP `--incr-key` option
Changed 9
  • Updated Go toolchain to 1.24.5
  • Updated golang.org/x/sys from 0.33.0 to 0.35.0
  • Updated golang.org/x/term from 0.32.0 to 0.34.0
  • Updated golang.org/x/text from 0.26.0 to 0.28.0
  • Updated github.com/klauspost/compress from 1.17.11 to 1.18.0
  • Updated github.com/lestrrat-go/strftime from 1.1.0 to 1.1.1
Fixed 4
  • Fixed doc typo regarding empty values and multiplication
  • Forced decimal formatting for integers on JSON output
  • Preserved file modes on `mlr -I`
  • CSV comments are no longer parsed
View originalRead the notes
How v6.15.0 went
v6.14.0

Miller 6.14.0: survival curve, misc. features, and bugfixes

Added 2
  • Add surv verb to estimate a survival curve
  • Add keystroke savers for same format
Changed 7
  • cut: Consider -o flag even when using regexes with -r
  • Improve help message on non-existent verb
  • Add help strings for -a and -r in sub, gsub, and ssub
  • Add -c, -t, -j to doc matrix
  • Doc copy edits
  • Use Go 1.21 in CI
  • Switch to generics (one PR of several)
Fixed 8
  • Fix unflatten with field names like . .x or x..y
  • Fix section-title typos for docs
  • Fix non-constant format string errors with Go 1.24
  • Fix joinv with "" separator
  • Fix print within begin{} and end{} blocks
  • Argument parsing is different in mlr -s scripts
  • Join docs wrong link
  • Typo fix: programmatically
View originalRead the notes
How v6.14.0 went
v6.13.0

Miller 6.13.0: File-stat DSL function, new stats accumulator, misc. bugfixes

Added 3
  • Add a `stat` DSL function
  • Add `mad` accumulator for `stats1` DSL function
  • Support `$NO_COLOR`
Changed 3
  • Make auto-unflatten smarter
  • Add on-line help for `mlr summary --transpose`
  • Use string version of regexp methods to reduce allocations
Fixed 7
  • Fix fraction calculation bug
  • Fix local time when TZ is not set
  • Fix bash process substitution not working with `put -f`
  • Fix misnamed RS aliases for ASCII top-of-table control characters
  • Fix binary data in JSON output
  • Fix prepipe handling when filenames contain whitespace
  • Fix error in `splita`/`splitax` when a field contains a single non-string value
View originalRead the notes
How v6.13.0 went
View all

Discussion

If you publish Miller, you can claim this product by proving you administer its repository.