miller/docs6/docs/data/begin-end-example-1.sh

5 lines
85 B
Bash

mlr put '
begin { @sum = 0 };
@x_sum += $x;
end { emit @x_sum }
' ./data/small