miller/doc/data/begin-end-example-7a.sh
2016-04-11 21:02:42 -04:00

7 lines
123 B
Bash

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