mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-23 16:08:43 +00:00
10 lines
202 B
Bash
10 lines
202 B
Bash
mlr --from data/small --opprint put '
|
|
local suma = 0;
|
|
local sumb = 0;
|
|
for (local a = 1, local b = 1; a <= NR; a += 1, b *= 2) {
|
|
suma += a;
|
|
sumb += b;
|
|
}
|
|
$suma = suma;
|
|
$sumb = sumb;
|
|
'
|