miller/docs6/data/begin-end-example-6.sh
2021-05-24 00:11:53 -04:00

8 lines
128 B
Bash

mlr put -q '
@x_count[$a] += 1;
@x_sum[$a] += $x;
end {
emit @x_count, "a";
emit @x_sum, "a";
}
' ../data/small