mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-24 02:36:15 +00:00
7 lines
134 B
Bash
7 lines
134 B
Bash
mlr --from data/medium put -q '
|
|
@x_count[$a][$b] += 1;
|
|
@x_sum[$a][$b] += $x;
|
|
end {
|
|
emit (@x_count, @x_sum), "a", "b";
|
|
}
|
|
'
|