miller/docs/data/for-srec-example-3.sh
2020-09-27 11:29:50 -04:00

9 lines
138 B
Bash

mlr --from data/small --opprint put '
sum = 0;
for (k,v in $*) {
if (is_numeric(v)) {
sum += $[k];
}
}
$sum = sum
'