mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-21 02:23:20 +00:00
14 lines
359 B
Bash
14 lines
359 B
Bash
mlr --from data/small head -n 2 then put -q '
|
|
begin {
|
|
@myvar["nesting-is-too-shallow"] = 1;
|
|
@myvar["nesting-is"]["just-right"] = 2;
|
|
@myvar["nesting-is"]["also-just-right"] = 3;
|
|
@myvar["nesting"]["is"]["too-deep"] = 4;
|
|
}
|
|
end {
|
|
for ((k1, k2), v in @*) {
|
|
@terminal[k1][k2] = v
|
|
}
|
|
emit @terminal, "basename", "index1"
|
|
}
|
|
'
|