mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-18 17:04:50 +00:00
10 lines
159 B
Bash
10 lines
159 B
Bash
mlr --from data/small --opprint put '
|
|
$sum1 = 0;
|
|
$sum2 = 0;
|
|
for (k,v in $*) {
|
|
if (is_numeric(v)) {
|
|
$sum1 +=v;
|
|
$sum2 += $[k];
|
|
}
|
|
}
|
|
'
|