miller/doc/data/begin-end-example-6a.sh
2016-04-08 00:08:40 -04:00

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