mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-19 01:15:21 +00:00
9 lines
138 B
Bash
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
|
|
'
|