miller/docs/data/begin-end-example-6a.sh
2020-09-27 11:29:50 -04:00

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";
}
'