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