mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-19 01:15:21 +00:00
8 lines
127 B
Bash
8 lines
127 B
Bash
mlr put -q '
|
|
@x_count[$a] += 1;
|
|
@x_sum[$a] += $x;
|
|
end {
|
|
emit @x_count, "a";
|
|
emit @x_sum, "a";
|
|
}
|
|
' ./data/small
|