Miller 5.9.0

Overview   Using   Reference   Background   Repository  

About
10-minute intro
File formats
Unix-toolkit context
Record-heterogeneity
Internationalization

Unix-toolkit context
• File-format awareness
• awk-like features: mlr filter and mlr put
• See also

File-format awareness

Miller respects CSV headers. If you do mlr --csv cat *.csv then the header line is written once:

$ cat data/a.csv
a,b,c
1,2,3
4,5,6

$ cat data/b.csv
a,b,c
7,8,9

$ mlr --csv cat data/a.csv data/b.csv
a,b,c
1,2,3
4,5,6
7,8,9

$ mlr --csv sort -nr b data/a.csv data/b.csv
a,b,c
7,8,9
4,5,6
1,2,3

Likewise with mlr sort, mlr tac, and so on.

awk-like features: mlr filter and mlr put

See also

See Main reference for more on Miller’s subcommands cat, cut, head, sort, tac, tail, top, and uniq, as well as awk-like mlr filter and mlr put.