miller/doc/data/begin-end-example-6a.sh
2016-06-18 23:57:49 -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";
}
'