diff --git a/c/reg_test/expected/out b/c/reg_test/expected/out index 3551d8918..d496c444d 100644 --- a/c/reg_test/expected/out +++ b/c/reg_test/expected/out @@ -675,6 +675,164 @@ a=XhatX,b=XwyeX,i=9.000000e+00,x=3.144188e-02,y=7.495508e-01 a=XpanX,b=XwyeX,i=1.000000e+01,x=5.026260e-01,y=9.526184e-01 +================================================================ +REPEAT + +mlr repeat -n 5 ./reg_test/input/repeat-input.dat +a=1,b=2,c=3 +a=1,b=2,c=3 +a=1,b=2,c=3 +a=1,b=2,c=3 +a=1,b=2,c=3 +a=3,b=4,c=5 +a=3,b=4,c=5 +a=3,b=4,c=5 +a=3,b=4,c=5 +a=3,b=4,c=5 +a=6,b=,c=7 +a=6,b=,c=7 +a=6,b=,c=7 +a=6,b=,c=7 +a=6,b=,c=7 +a=8,x=,c=9 +a=8,x=,c=9 +a=8,x=,c=9 +a=8,x=,c=9 +a=8,x=,c=9 + +mlr repeat -f a ./reg_test/input/repeat-input.dat +a=1,b=2,c=3 +a=3,b=4,c=5 +a=3,b=4,c=5 +a=3,b=4,c=5 +a=6,b=,c=7 +a=6,b=,c=7 +a=6,b=,c=7 +a=6,b=,c=7 +a=6,b=,c=7 +a=6,b=,c=7 +a=8,x=,c=9 +a=8,x=,c=9 +a=8,x=,c=9 +a=8,x=,c=9 +a=8,x=,c=9 +a=8,x=,c=9 +a=8,x=,c=9 +a=8,x=,c=9 + +mlr repeat -f b ./reg_test/input/repeat-input.dat +a=1,b=2,c=3 +a=1,b=2,c=3 +a=3,b=4,c=5 +a=3,b=4,c=5 +a=3,b=4,c=5 +a=3,b=4,c=5 + +mlr repeat -f c ./reg_test/input/repeat-input.dat +a=1,b=2,c=3 +a=1,b=2,c=3 +a=1,b=2,c=3 +a=3,b=4,c=5 +a=3,b=4,c=5 +a=3,b=4,c=5 +a=3,b=4,c=5 +a=3,b=4,c=5 +a=6,b=,c=7 +a=6,b=,c=7 +a=6,b=,c=7 +a=6,b=,c=7 +a=6,b=,c=7 +a=6,b=,c=7 +a=6,b=,c=7 +a=8,x=,c=9 +a=8,x=,c=9 +a=8,x=,c=9 +a=8,x=,c=9 +a=8,x=,c=9 +a=8,x=,c=9 +a=8,x=,c=9 +a=8,x=,c=9 +a=8,x=,c=9 + + +================================================================ +MAPPER NOTHING + +mlr cat then nothing + +mlr cat then nothing ./reg_test/input/abixy + +mlr tac then nothing ./reg_test/input/abixy + +mlr cat then nothing ./reg_test/input/abixy ./reg_test/input/abixy + +mlr cat then nothing then cat ./reg_test/input/abixy + + +================================================================ +CHAINING + +mlr cat then cat ./reg_test/input/short +a=1 +b=2 +c=3 + +mlr cat then tac ./reg_test/input/short +c=3 +b=2 +a=1 + +mlr tac then cat ./reg_test/input/short +c=3 +b=2 +a=1 + +mlr tac then tac ./reg_test/input/short +a=1 +b=2 +c=3 + +mlr cat then cat then cat ./reg_test/input/short +a=1 +b=2 +c=3 + +mlr cat then cat then tac ./reg_test/input/short +c=3 +b=2 +a=1 + +mlr cat then tac then cat ./reg_test/input/short +c=3 +b=2 +a=1 + +mlr cat then tac then tac ./reg_test/input/short +a=1 +b=2 +c=3 + +mlr tac then cat then cat ./reg_test/input/short +c=3 +b=2 +a=1 + +mlr tac then cat then tac ./reg_test/input/short +a=1 +b=2 +c=3 + +mlr tac then tac then cat ./reg_test/input/short +a=1 +b=2 +c=3 + +mlr tac then tac then tac ./reg_test/input/short +c=3 +b=2 +a=1 + + ================================================================ HEAD/TAIL/ETC. @@ -3542,86 +3700,6 @@ x,a,b 4,5,50 -================================================================ -REPEAT - -mlr repeat -n 5 ./reg_test/input/repeat-input.dat -a=1,b=2,c=3 -a=1,b=2,c=3 -a=1,b=2,c=3 -a=1,b=2,c=3 -a=1,b=2,c=3 -a=3,b=4,c=5 -a=3,b=4,c=5 -a=3,b=4,c=5 -a=3,b=4,c=5 -a=3,b=4,c=5 -a=6,b=,c=7 -a=6,b=,c=7 -a=6,b=,c=7 -a=6,b=,c=7 -a=6,b=,c=7 -a=8,x=,c=9 -a=8,x=,c=9 -a=8,x=,c=9 -a=8,x=,c=9 -a=8,x=,c=9 - -mlr repeat -f a ./reg_test/input/repeat-input.dat -a=1,b=2,c=3 -a=3,b=4,c=5 -a=3,b=4,c=5 -a=3,b=4,c=5 -a=6,b=,c=7 -a=6,b=,c=7 -a=6,b=,c=7 -a=6,b=,c=7 -a=6,b=,c=7 -a=6,b=,c=7 -a=8,x=,c=9 -a=8,x=,c=9 -a=8,x=,c=9 -a=8,x=,c=9 -a=8,x=,c=9 -a=8,x=,c=9 -a=8,x=,c=9 -a=8,x=,c=9 - -mlr repeat -f b ./reg_test/input/repeat-input.dat -a=1,b=2,c=3 -a=1,b=2,c=3 -a=3,b=4,c=5 -a=3,b=4,c=5 -a=3,b=4,c=5 -a=3,b=4,c=5 - -mlr repeat -f c ./reg_test/input/repeat-input.dat -a=1,b=2,c=3 -a=1,b=2,c=3 -a=1,b=2,c=3 -a=3,b=4,c=5 -a=3,b=4,c=5 -a=3,b=4,c=5 -a=3,b=4,c=5 -a=3,b=4,c=5 -a=6,b=,c=7 -a=6,b=,c=7 -a=6,b=,c=7 -a=6,b=,c=7 -a=6,b=,c=7 -a=6,b=,c=7 -a=6,b=,c=7 -a=8,x=,c=9 -a=8,x=,c=9 -a=8,x=,c=9 -a=8,x=,c=9 -a=8,x=,c=9 -a=8,x=,c=9 -a=8,x=,c=9 -a=8,x=,c=9 -a=8,x=,c=9 - - ================================================================ RESHAPE @@ -10538,6 +10616,104 @@ x_p99 9.900000 x_p100 10 +================================================================ +IN-PLACE PROCESSING + +cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp1 +a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 +a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 +a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 +a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 +a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 +a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 +a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 +a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 +a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 +a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 + +cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp2 +a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 +a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 +a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 +a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 +a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 +a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 +a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 +a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 +a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 +a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 + +mlr -I --opprint head -n 2 /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp1 /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp2 + +cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp1 +a b i x y +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 + +cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp2 +a b i x y +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 + +mlr -I --opprint head -n 2 +mlr: -I option (in-place operation) requires input files. + +mlr -I --opprint -n head -n 2 /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp1 +mlr: -I option (in-place operation) requires input files. + +cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp1 +a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 +a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 +a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 +a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 +a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 +a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 +a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 +a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 +a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 +a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 + +cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp2 +a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 +a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 +a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 +a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 +a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 +a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 +a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 +a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 +a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 +a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 + +mlr -I --opprint rename a,AYE,b,BEE /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp1 /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp2 + +cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp1 +AYE BEE i x y +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp2 +AYE BEE i x y +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + + ================================================================ DSL OPERATOR ASSOCIATIVITY @@ -16946,11 +17122,11 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth mlr -n filter -v -mlr: filter statement must not be empty. RAW AST: AST ROOT: (null) +mlr: filter statement must not be empty. mlr -n put -v begin {} RAW AST: @@ -17613,7 +17789,6 @@ DSL CONTEXT-SPECIFIC VALIDATION ---------------------------------------------------------------- non-top-level begin/end mlr put -v begin{begin{@x=1}} -mlr: begin statements are only valid at top level. RAW AST: AST ROOT: @@ -17638,9 +17813,9 @@ text="begin", type=BEGIN: subframe_var_count=1 max_subframe_depth=2 max_var_dept text="oosvar_keylist", type=OOSVAR_KEYLIST: text="x", type=STRING_LITERAL. text="1", type=NUMERIC_LITERAL. +mlr: begin statements are only valid at top level. mlr put -v true{begin{@x=1}} -mlr: begin statements are only valid at top level. RAW AST: AST ROOT: @@ -17668,9 +17843,9 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth text="oosvar_keylist", type=OOSVAR_KEYLIST: text="x", type=STRING_LITERAL. text="1", type=NUMERIC_LITERAL. +mlr: begin statements are only valid at top level. mlr put -v end{end{@x=1}} -mlr: end statements are only valid at top level. RAW AST: AST ROOT: @@ -17695,9 +17870,9 @@ text="end", type=END: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 text="oosvar_keylist", type=OOSVAR_KEYLIST: text="x", type=STRING_LITERAL. text="1", type=NUMERIC_LITERAL. +mlr: end statements are only valid at top level. mlr put -v true{end{@x=1}} -mlr: end statements are only valid at top level. RAW AST: AST ROOT: @@ -17725,11 +17900,11 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth text="oosvar_keylist", type=OOSVAR_KEYLIST: text="x", type=STRING_LITERAL. text="1", type=NUMERIC_LITERAL. +mlr: end statements are only valid at top level. ---------------------------------------------------------------- srecs in begin/end mlr put -v begin{$x=1} -mlr: assignments to $-variables are not valid within begin or end blocks. RAW AST: AST ROOT: @@ -17748,9 +17923,9 @@ text="begin", type=BEGIN: subframe_var_count=1 max_subframe_depth=1 max_var_dept text="=", type=SREC_ASSIGNMENT: text="x", type=FIELD_NAME. text="1", type=NUMERIC_LITERAL. +mlr: assignments to $-variables are not valid within begin or end blocks. mlr put -v begin{@x=$y} -mlr: statements involving $-variables are not valid within begin or end blocks. RAW AST: AST ROOT: @@ -17771,9 +17946,9 @@ text="begin", type=BEGIN: subframe_var_count=1 max_subframe_depth=1 max_var_dept text="oosvar_keylist", type=OOSVAR_KEYLIST: text="x", type=STRING_LITERAL. text="y", type=FIELD_NAME. +mlr: statements involving $-variables are not valid within begin or end blocks. mlr put -v end{$x=1} -mlr: assignments to $-variables are not valid within begin or end blocks. RAW AST: AST ROOT: @@ -17792,9 +17967,9 @@ text="end", type=END: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 text="=", type=SREC_ASSIGNMENT: text="x", type=FIELD_NAME. text="1", type=NUMERIC_LITERAL. +mlr: assignments to $-variables are not valid within begin or end blocks. mlr put -v end{@x=$y} -mlr: statements involving $-variables are not valid within begin or end blocks. RAW AST: AST ROOT: @@ -17815,9 +17990,9 @@ text="end", type=END: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 text="oosvar_keylist", type=OOSVAR_KEYLIST: text="x", type=STRING_LITERAL. text="y", type=FIELD_NAME. +mlr: statements involving $-variables are not valid within begin or end blocks. mlr put -v begin{@v=$*} -mlr: assignments from $-variables are not valid within begin or end blocks. RAW AST: AST ROOT: @@ -17838,9 +18013,9 @@ text="begin", type=BEGIN: subframe_var_count=1 max_subframe_depth=1 max_var_dept text="oosvar_keylist", type=OOSVAR_KEYLIST: text="v", type=STRING_LITERAL. text="$*", type=FULL_SREC. +mlr: assignments from $-variables are not valid within begin or end blocks. mlr put -v end{$*=@v} -mlr: assignments to $-variables are not valid within begin or end blocks. RAW AST: AST ROOT: @@ -17861,9 +18036,9 @@ text="end", type=END: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 text="$*", type=FULL_SREC. text="oosvar_keylist", type=OOSVAR_KEYLIST: text="v", type=STRING_LITERAL. +mlr: assignments to $-variables are not valid within begin or end blocks. mlr put -v begin{unset $x} -mlr: unset of $-variables is not valid within begin or end blocks. RAW AST: AST ROOT: @@ -17880,9 +18055,9 @@ text="begin", type=BEGIN: subframe_var_count=1 max_subframe_depth=1 max_var_dept text="begin_block", type=STATEMENT_BLOCK: text="unset", type=UNSET: text="x", type=FIELD_NAME. +mlr: unset of $-variables is not valid within begin or end blocks. mlr put -v end{unset $x} -mlr: unset of $-variables is not valid within begin or end blocks. RAW AST: AST ROOT: @@ -17899,9 +18074,9 @@ text="end", type=END: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 text="end_block", type=STATEMENT_BLOCK: text="unset", type=UNSET: text="x", type=FIELD_NAME. +mlr: unset of $-variables is not valid within begin or end blocks. mlr put -v begin{unset $*} -mlr: unset of $-variables is not valid within begin or end blocks. RAW AST: AST ROOT: @@ -17918,9 +18093,9 @@ text="begin", type=BEGIN: subframe_var_count=1 max_subframe_depth=1 max_var_dept text="begin_block", type=STATEMENT_BLOCK: text="unset", type=UNSET: text="$*", type=FULL_SREC. +mlr: unset of $-variables is not valid within begin or end blocks. mlr put -v end{unset $*} -mlr: unset of $-variables is not valid within begin or end blocks. RAW AST: AST ROOT: @@ -17937,11 +18112,11 @@ text="end", type=END: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 text="end_block", type=STATEMENT_BLOCK: text="unset", type=UNSET: text="$*", type=FULL_SREC. +mlr: unset of $-variables is not valid within begin or end blocks. ---------------------------------------------------------------- break/continue outside loop mlr put -v break -mlr: break statements are only valid within for, while, or do-while. RAW AST: AST ROOT: @@ -17953,9 +18128,9 @@ BLOCKED AST: MAIN BLOCK: text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 text="break", type=BREAK. +mlr: break statements are only valid within for, while, or do-while. mlr put -v continue -mlr: break statements are only valid within for, while, or do-while. RAW AST: AST ROOT: @@ -17967,11 +18142,11 @@ BLOCKED AST: MAIN BLOCK: text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 text="continue", type=CONTINUE. +mlr: break statements are only valid within for, while, or do-while. ---------------------------------------------------------------- oosvars etc. in mlr filter mlr filter -v break -mlr: filter expressions must end in a final boolean statement. RAW AST: AST ROOT: @@ -17983,9 +18158,9 @@ BLOCKED AST: MAIN BLOCK: text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 text="break", type=BREAK. +mlr: filter expressions must end in a final boolean statement. mlr filter -v continue -mlr: filter expressions must end in a final boolean statement. RAW AST: AST ROOT: @@ -17997,6 +18172,7 @@ BLOCKED AST: MAIN BLOCK: text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 text="continue", type=CONTINUE. +mlr: filter expressions must end in a final boolean statement. ---------------------------------------------------------------- expanded filter @@ -18650,7 +18826,7 @@ x=hello ---------------------------------------------------------------- LHS value on first record should result in ZYX for process creation -mlr --from ./reg_test/input/abixy put ENV["ZYX"]="CBA".NR; print | ENV["indir"]."/env-assign.sh" , "a is " . $a +mlr --from ./reg_test/input/abixy put -q ENV["ZYX"]="CBA".NR; print | ENV["indir"]."/env-assign.sh" , "a is " . $a [ZYX]=[CBA1] a is pan [ZYX]=[CBA1] a is eks [ZYX]=[CBA1] a is wye @@ -31757,6 +31933,1284 @@ t:u=0.952618 a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 +================================================================ +OOSVAR-FROM-SREC ASSIGNMENT + +mlr put -v @v = $* /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="$*", type=FULL_SREC. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="$*", type=FULL_SREC. + + +mlr put -v @v[1] = $* /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + text="$*", type=FULL_SREC. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + text="$*", type=FULL_SREC. + + +mlr put -v @v[$2] = $* /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="2", type=FIELD_NAME. + text="$*", type=FULL_SREC. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="2", type=FIELD_NAME. + text="$*", type=FULL_SREC. + + +mlr put -v NR == 3 {@v = $*} /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="$*", type=FULL_SREC. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 + text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="$*", type=FULL_SREC. + + +mlr put -v NR == 3 {@v[1] = $*} /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + text="$*", type=FULL_SREC. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 + text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + text="$*", type=FULL_SREC. + + +mlr put -v NR == 3 {@v[$2] = $*} /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="2", type=FIELD_NAME. + text="$*", type=FULL_SREC. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 + text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="2", type=FIELD_NAME. + text="$*", type=FULL_SREC. + + +mlr --oxtab put -q @v = $*; end {emitp @v } ./reg_test/input/abixy-het +v:a pan +v:b wye +v:i 10 +v:x 0.5026260055412137 +v:y 0.9526183602969864 + +mlr --oxtab put -q @v[$a] = $*; end {emitp @v } ./reg_test/input/abixy-het +v:pan:a pan +v:pan:b wye +v:pan:i 10 +v:pan:x 0.5026260055412137 +v:pan:y 0.9526183602969864 +v:eks:a eks +v:eks:b zee +v:eks:iii 7 +v:eks:x 0.6117840605678454 +v:eks:y 0.1878849191181694 +v:wye:a wye +v:wye:b pan +v:wye:i 5 +v:wye:xxx 0.5732889198020006 +v:wye:y 0.8636244699032729 +v:zee:a zee +v:zee:b wye +v:zee:i 8 +v:zee:x 0.5985540091064224 +v:zee:yyy 0.976181385699006 + +mlr --oxtab put -q @v[$a] = $*; end {emitp @v, "a" } ./reg_test/input/abixy-het +a pan +v:a pan +v:b wye +v:i 10 +v:x 0.5026260055412137 +v:y 0.9526183602969864 + +a eks +v:a eks +v:b zee +v:iii 7 +v:x 0.6117840605678454 +v:y 0.1878849191181694 + +a wye +v:a wye +v:b pan +v:i 5 +v:xxx 0.5732889198020006 +v:y 0.8636244699032729 + +a zee +v:a zee +v:b wye +v:i 8 +v:x 0.5985540091064224 +v:yyy 0.976181385699006 + +mlr --oxtab put -q @v[$a][$b] = $*; end {emitp @v } ./reg_test/input/abixy-het +v:pan:pan:a pan +v:pan:pan:b pan +v:pan:pan:i 1 +v:pan:pan:x 0.3467901443380824 +v:pan:pan:y 0.7268028627434533 +v:pan:wye:a pan +v:pan:wye:b wye +v:pan:wye:i 10 +v:pan:wye:x 0.5026260055412137 +v:pan:wye:y 0.9526183602969864 +v:eks:pan:a eks +v:eks:pan:b pan +v:eks:pan:i 2 +v:eks:pan:x 0.7586799647899636 +v:eks:pan:y 0.5221511083334797 +v:eks:zee:a eks +v:eks:zee:b zee +v:eks:zee:iii 7 +v:eks:zee:x 0.6117840605678454 +v:eks:zee:y 0.1878849191181694 +v:wye:pan:a wye +v:wye:pan:b pan +v:wye:pan:i 5 +v:wye:pan:xxx 0.5732889198020006 +v:wye:pan:y 0.8636244699032729 +v:zee:pan:a zee +v:zee:pan:b pan +v:zee:pan:i 6 +v:zee:pan:x 0.5271261600918548 +v:zee:pan:y 0.49322128674835697 +v:zee:wye:a zee +v:zee:wye:b wye +v:zee:wye:i 8 +v:zee:wye:x 0.5985540091064224 +v:zee:wye:yyy 0.976181385699006 + +mlr --oxtab put -q @v[$a][$b] = $*; end {emitp @v, "a" } ./reg_test/input/abixy-het +a pan +v:pan:a pan +v:pan:b pan +v:pan:i 1 +v:pan:x 0.3467901443380824 +v:pan:y 0.7268028627434533 +v:wye:a pan +v:wye:b wye +v:wye:i 10 +v:wye:x 0.5026260055412137 +v:wye:y 0.9526183602969864 + +a eks +v:pan:a eks +v:pan:b pan +v:pan:i 2 +v:pan:x 0.7586799647899636 +v:pan:y 0.5221511083334797 +v:zee:a eks +v:zee:b zee +v:zee:iii 7 +v:zee:x 0.6117840605678454 +v:zee:y 0.1878849191181694 + +a wye +v:pan:a wye +v:pan:b pan +v:pan:i 5 +v:pan:xxx 0.5732889198020006 +v:pan:y 0.8636244699032729 + +a zee +v:pan:a zee +v:pan:b pan +v:pan:i 6 +v:pan:x 0.5271261600918548 +v:pan:y 0.49322128674835697 +v:wye:a zee +v:wye:b wye +v:wye:i 8 +v:wye:x 0.5985540091064224 +v:wye:yyy 0.976181385699006 + +mlr --oxtab put -q @v[$a][$b] = $*; end {emitp @v, "a", "b"} ./reg_test/input/abixy-het +a pan +b pan +v:a pan +v:b pan +v:i 1 +v:x 0.3467901443380824 +v:y 0.7268028627434533 + +a pan +b wye +v:a pan +v:b wye +v:i 10 +v:x 0.5026260055412137 +v:y 0.9526183602969864 + +a eks +b pan +v:a eks +v:b pan +v:i 2 +v:x 0.7586799647899636 +v:y 0.5221511083334797 + +a eks +b zee +v:a eks +v:b zee +v:iii 7 +v:x 0.6117840605678454 +v:y 0.1878849191181694 + +a wye +b pan +v:a wye +v:b pan +v:i 5 +v:xxx 0.5732889198020006 +v:y 0.8636244699032729 + +a zee +b pan +v:a zee +v:b pan +v:i 6 +v:x 0.5271261600918548 +v:y 0.49322128674835697 + +a zee +b wye +v:a zee +v:b wye +v:i 8 +v:x 0.5985540091064224 +v:yyy 0.976181385699006 + + +================================================================ +SREC-FROM-OOSVAR ASSIGNMENT + +mlr put -v $* = @v /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="=", type=FULL_SREC_ASSIGNMENT: + text="$*", type=FULL_SREC. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + text="=", type=FULL_SREC_ASSIGNMENT: + text="$*", type=FULL_SREC. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + + +mlr put -v $* = @v[1] /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="=", type=FULL_SREC_ASSIGNMENT: + text="$*", type=FULL_SREC. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + text="=", type=FULL_SREC_ASSIGNMENT: + text="$*", type=FULL_SREC. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + + +mlr put -v $* = @v[$2] /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="=", type=FULL_SREC_ASSIGNMENT: + text="$*", type=FULL_SREC. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="2", type=FIELD_NAME. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + text="=", type=FULL_SREC_ASSIGNMENT: + text="$*", type=FULL_SREC. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="2", type=FIELD_NAME. + + +mlr put -v NR == 3 {$* = @v } /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: + text="=", type=FULL_SREC_ASSIGNMENT: + text="$*", type=FULL_SREC. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 + text="=", type=FULL_SREC_ASSIGNMENT: + text="$*", type=FULL_SREC. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + + +mlr put -v NR == 3 {$* = @v[1] } /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: + text="=", type=FULL_SREC_ASSIGNMENT: + text="$*", type=FULL_SREC. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 + text="=", type=FULL_SREC_ASSIGNMENT: + text="$*", type=FULL_SREC. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + + +mlr put -v NR == 3 {$* = @v[$2]} /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: + text="=", type=FULL_SREC_ASSIGNMENT: + text="$*", type=FULL_SREC. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="2", type=FIELD_NAME. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 + text="=", type=FULL_SREC_ASSIGNMENT: + text="$*", type=FULL_SREC. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="2", type=FIELD_NAME. + + +mlr put @v[NR] = $a; NR == 7 { @v = $*} ; $* = @v ./reg_test/input/abixy-het +1=pan +1=pan,2=eks +1=pan,2=eks +1=pan,2=eks,4=eks +1=pan,2=eks,4=eks,5=wye +1=pan,2=eks,4=eks,5=wye,6=zee +a=eks,b=zee,iii=7,x=0.6117840605678454,y=0.1878849191181694 +a=eks,b=zee,iii=7,x=0.6117840605678454,y=0.1878849191181694,8=zee +a=eks,b=zee,iii=7,x=0.6117840605678454,y=0.1878849191181694,8=zee +a=eks,b=zee,iii=7,x=0.6117840605678454,y=0.1878849191181694,8=zee,10=pan + + +================================================================ +OOSVAR-FROM-OOSVAR ASSIGNMENT + +mlr put -v @u = @v /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + + +mlr put -v @u = @v[1] /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + + +mlr put -v @u[2] = @v /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="2", type=NUMERIC_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="2", type=NUMERIC_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + + +mlr put -v @u[2] = @v[1] /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="2", type=NUMERIC_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="2", type=NUMERIC_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + + +mlr put -v begin { @u = @v } /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="begin", type=BEGIN: + text="begin_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + +BLOCKED AST: + +BEGIN-BLOCK: +text="begin", type=BEGIN: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + text="begin_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + + +mlr put -v begin { @u = @v[1] } /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="begin", type=BEGIN: + text="begin_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + +BLOCKED AST: + +BEGIN-BLOCK: +text="begin", type=BEGIN: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + text="begin_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + + +mlr put -v begin { @u[2] = @v } /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="begin", type=BEGIN: + text="begin_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="2", type=NUMERIC_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + +BLOCKED AST: + +BEGIN-BLOCK: +text="begin", type=BEGIN: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + text="begin_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="2", type=NUMERIC_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + + +mlr put -v begin { @u[2] = @v[1] } /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="begin", type=BEGIN: + text="begin_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="2", type=NUMERIC_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + +BLOCKED AST: + +BEGIN-BLOCK: +text="begin", type=BEGIN: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + text="begin_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="2", type=NUMERIC_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + + +mlr put -v NR == 3 { @u = @v } /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + + +mlr put -v NR == 3 { @u = @v[1] } /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + + +mlr put -v NR == 3 { @u[2] = @v } /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="2", type=NUMERIC_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="2", type=NUMERIC_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + + +mlr put -v NR == 3 { @u[2] = @v[1] } /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="2", type=NUMERIC_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + +BLOCKED AST: + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 + text="cond", type=CONDITIONAL_BLOCK: + text="==", type=OPERATOR: + text="NR", type=CONTEXT_VARIABLE. + text="3", type=NUMERIC_LITERAL. + text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="2", type=NUMERIC_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + + +mlr put -v end { @u = @v } /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="end", type=END: + text="end_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + +BLOCKED AST: + +END-BLOCK: +text="end", type=END: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + text="end_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + + +mlr put -v end { @u = @v[1] } /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="end", type=END: + text="end_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + +BLOCKED AST: + +END-BLOCK: +text="end", type=END: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + text="end_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + + +mlr put -v end { @u[2] = @v } /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="end", type=END: + text="end_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="2", type=NUMERIC_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + +BLOCKED AST: + +END-BLOCK: +text="end", type=END: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + text="end_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="2", type=NUMERIC_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + + +mlr put -v end { @u[2] = @v[1] } /dev/null +RAW AST: + +AST ROOT: +text="block", type=STATEMENT_BLOCK: + text="end", type=END: + text="end_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="2", type=NUMERIC_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + +BLOCKED AST: + +END-BLOCK: +text="end", type=END: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + text="end_block", type=STATEMENT_BLOCK: + text="=", type=OOSVAR_ASSIGNMENT: + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="u", type=STRING_LITERAL. + text="2", type=NUMERIC_LITERAL. + text="oosvar_keylist", type=OOSVAR_KEYLIST: + text="v", type=STRING_LITERAL. + text="1", type=NUMERIC_LITERAL. + +MAIN BLOCK: +text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 + + +mlr put -q @s += $i; @t=@s; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy +{ + "s": 55, + "t": 55 +} +s=55 +t=55 + +mlr put -q @s[1] += $i; @t=@s; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy +{ + "s": { + "1": 55 + }, + "t": { + "1": 55 + } +} +s:1=55 +t:1=55 + +mlr put -q @s[1] += $i; @t=@s[1]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy +{ + "s": { + "1": 55 + }, + "t": 55 +} +s:1=55 +t=55 + +mlr put -q @s[1] += $i; @t[3]=@s; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy +{ + "s": { + "1": 55 + }, + "t": { + "3": { + "1": 55 + } + } +} +s:1=55 +t:3:1=55 + +mlr put -q @s[1] += $i; @t[3]=@s[1]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy +{ + "s": { + "1": 55 + }, + "t": { + "3": 55 + } +} +s:1=55 +t:3=55 + +mlr put -q @s[1][2] += $i; @t=@s; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy +{ + "s": { + "1": { + "2": 55 + } + }, + "t": { + "1": { + "2": 55 + } + } +} +s:1:2=55 +t:1:2=55 + +mlr put -q @s[1][2] += $i; @t=@s[1]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy +{ + "s": { + "1": { + "2": 55 + } + }, + "t": { + "2": 55 + } +} +s:1:2=55 +t:2=55 + +mlr put -q @s[1][2] += $i; @t=@s[1][2]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy +{ + "s": { + "1": { + "2": 55 + } + }, + "t": 55 +} +s:1:2=55 +t=55 + +mlr put -q @s[1][2] += $i; @t[3]=@s; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy +{ + "s": { + "1": { + "2": 55 + } + }, + "t": { + "3": { + "1": { + "2": 55 + } + } + } +} +s:1:2=55 +t:3:1:2=55 + +mlr put -q @s[1][2] += $i; @t[3]=@s[1]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy +{ + "s": { + "1": { + "2": 55 + } + }, + "t": { + "3": { + "2": 55 + } + } +} +s:1:2=55 +t:3:2=55 + +mlr put -q @s[1][2] += $i; @t[3]=@s[1][2]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy +{ + "s": { + "1": { + "2": 55 + } + }, + "t": { + "3": 55 + } +} +s:1:2=55 +t:3=55 + +mlr put -q @s[1][2] += $i; @t[3][4]=@s; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy +{ + "s": { + "1": { + "2": 55 + } + }, + "t": { + "3": { + "4": { + "1": { + "2": 55 + } + } + } + } +} +s:1:2=55 +t:3:4:1:2=55 + +mlr put -q @s[1][2] += $i; @t[3][4]=@s[1]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy +{ + "s": { + "1": { + "2": 55 + } + }, + "t": { + "3": { + "4": { + "2": 55 + } + } + } +} +s:1:2=55 +t:3:4:2=55 + +mlr put -q @s[1][2] += $i; @t[3][4]=@s[1][2]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy +{ + "s": { + "1": { + "2": 55 + } + }, + "t": { + "3": { + "4": 55 + } + } +} +s:1:2=55 +t:3:4=55 + +mlr --opprint put -q @s[NR][NR] = $i/100; @t[NR*10]=@s; end{emitp@s,"A","B"; emitp @t,"C","D","E"} ./reg_test/input/abixy +A B s +1 1 0.010000 +2 2 0.020000 +3 3 0.030000 +4 4 0.040000 +5 5 0.050000 +6 6 0.060000 +7 7 0.070000 +8 8 0.080000 +9 9 0.090000 +10 10 0.100000 + +C D E t +10 1 1 0.010000 +20 1 1 0.010000 +20 2 2 0.020000 +30 1 1 0.010000 +30 2 2 0.020000 +30 3 3 0.030000 +40 1 1 0.010000 +40 2 2 0.020000 +40 3 3 0.030000 +40 4 4 0.040000 +50 1 1 0.010000 +50 2 2 0.020000 +50 3 3 0.030000 +50 4 4 0.040000 +50 5 5 0.050000 +60 1 1 0.010000 +60 2 2 0.020000 +60 3 3 0.030000 +60 4 4 0.040000 +60 5 5 0.050000 +60 6 6 0.060000 +70 1 1 0.010000 +70 2 2 0.020000 +70 3 3 0.030000 +70 4 4 0.040000 +70 5 5 0.050000 +70 6 6 0.060000 +70 7 7 0.070000 +80 1 1 0.010000 +80 2 2 0.020000 +80 3 3 0.030000 +80 4 4 0.040000 +80 5 5 0.050000 +80 6 6 0.060000 +80 7 7 0.070000 +80 8 8 0.080000 +90 1 1 0.010000 +90 2 2 0.020000 +90 3 3 0.030000 +90 4 4 0.040000 +90 5 5 0.050000 +90 6 6 0.060000 +90 7 7 0.070000 +90 8 8 0.080000 +90 9 9 0.090000 +100 1 1 0.010000 +100 2 2 0.020000 +100 3 3 0.030000 +100 4 4 0.040000 +100 5 5 0.050000 +100 6 6 0.060000 +100 7 7 0.070000 +100 8 8 0.080000 +100 9 9 0.090000 +100 10 10 0.100000 + + ================================================================ DSL WHILE/DO-WHILE LOOPS @@ -32562,7 +34016,6 @@ mean hat cat 0.503701 mean hat dog 0.475824 mlr -n put -v for (k, k in $*) {} -mlr: redefinition of variable k in the same scope. RAW AST: AST ROOT: @@ -32572,9 +34025,9 @@ text="block", type=STATEMENT_BLOCK: text="k", type=UNTYPED_LOCAL_DEFINITION. text="k", type=UNTYPED_LOCAL_DEFINITION. text="for_full_srec_block", type=STATEMENT_BLOCK: +mlr: redefinition of variable k in the same scope. mlr -n put -v for (k, k in @*) {} -mlr: redefinition of variable k in the same scope. RAW AST: AST ROOT: @@ -32586,9 +34039,9 @@ text="block", type=STATEMENT_BLOCK: text="k", type=UNTYPED_LOCAL_DEFINITION. text="empty_keylist", type=OOSVAR_KEYLIST: text="for_full_oosvar_block", type=STATEMENT_BLOCK: +mlr: redefinition of variable k in the same scope. mlr -n put -v for ((a,a), c in @*) {} -mlr: redefinition of variable a in the same scope. RAW AST: AST ROOT: @@ -32601,9 +34054,9 @@ text="block", type=STATEMENT_BLOCK: text="c", type=UNTYPED_LOCAL_DEFINITION. text="empty_keylist", type=OOSVAR_KEYLIST: text="for_full_oosvar_block", type=STATEMENT_BLOCK: +mlr: redefinition of variable a in the same scope. mlr -n put -v for ((a,b), a in @*) {} -mlr: redefinition of variable a in the same scope. RAW AST: AST ROOT: @@ -32616,9 +34069,9 @@ text="block", type=STATEMENT_BLOCK: text="a", type=UNTYPED_LOCAL_DEFINITION. text="empty_keylist", type=OOSVAR_KEYLIST: text="for_full_oosvar_block", type=STATEMENT_BLOCK: +mlr: redefinition of variable a in the same scope. mlr -n put -v for ((a,b), b in @*) {} -mlr: redefinition of variable b in the same scope. RAW AST: AST ROOT: @@ -32631,9 +34084,9 @@ text="block", type=STATEMENT_BLOCK: text="b", type=UNTYPED_LOCAL_DEFINITION. text="empty_keylist", type=OOSVAR_KEYLIST: text="for_full_oosvar_block", type=STATEMENT_BLOCK: +mlr: redefinition of variable b in the same scope. mlr -n put -v for ((a,a,c), d in @*) {} -mlr: redefinition of variable a in the same scope. RAW AST: AST ROOT: @@ -32647,9 +34100,9 @@ text="block", type=STATEMENT_BLOCK: text="d", type=UNTYPED_LOCAL_DEFINITION. text="empty_keylist", type=OOSVAR_KEYLIST: text="for_full_oosvar_block", type=STATEMENT_BLOCK: +mlr: redefinition of variable a in the same scope. mlr -n put -v for ((a,b,a), d in @*) {} -mlr: redefinition of variable a in the same scope. RAW AST: AST ROOT: @@ -32663,9 +34116,9 @@ text="block", type=STATEMENT_BLOCK: text="d", type=UNTYPED_LOCAL_DEFINITION. text="empty_keylist", type=OOSVAR_KEYLIST: text="for_full_oosvar_block", type=STATEMENT_BLOCK: +mlr: redefinition of variable a in the same scope. mlr -n put -v for ((a,b,c), a in @*) {} -mlr: redefinition of variable a in the same scope. RAW AST: AST ROOT: @@ -32679,9 +34132,9 @@ text="block", type=STATEMENT_BLOCK: text="a", type=UNTYPED_LOCAL_DEFINITION. text="empty_keylist", type=OOSVAR_KEYLIST: text="for_full_oosvar_block", type=STATEMENT_BLOCK: +mlr: redefinition of variable a in the same scope. mlr -n put -v for ((a,b,b), d in @*) {} -mlr: redefinition of variable b in the same scope. RAW AST: AST ROOT: @@ -32695,9 +34148,9 @@ text="block", type=STATEMENT_BLOCK: text="d", type=UNTYPED_LOCAL_DEFINITION. text="empty_keylist", type=OOSVAR_KEYLIST: text="for_full_oosvar_block", type=STATEMENT_BLOCK: +mlr: redefinition of variable b in the same scope. mlr -n put -v for ((a,b,c), b in @*) {} -mlr: redefinition of variable b in the same scope. RAW AST: AST ROOT: @@ -32711,9 +34164,9 @@ text="block", type=STATEMENT_BLOCK: text="b", type=UNTYPED_LOCAL_DEFINITION. text="empty_keylist", type=OOSVAR_KEYLIST: text="for_full_oosvar_block", type=STATEMENT_BLOCK: +mlr: redefinition of variable b in the same scope. mlr -n put -v for ((a,b,c), c in @*) {} -mlr: redefinition of variable c in the same scope. RAW AST: AST ROOT: @@ -32727,6 +34180,7 @@ text="block", type=STATEMENT_BLOCK: text="c", type=UNTYPED_LOCAL_DEFINITION. text="empty_keylist", type=OOSVAR_KEYLIST: text="for_full_oosvar_block", type=STATEMENT_BLOCK: +mlr: redefinition of variable c in the same scope. mlr --from ./reg_test/input/xyz2 put -q func f() { return {"a"."b":"c"."d",3:4}}; for (k,v in f()){print "k=".k.",v=".v} k=ab,v=cd @@ -41182,118 +42636,6 @@ ab 0.031442_0.749551 ab 0.502626_0.952618 -================================================================ -MAPPER NOTHING - -mlr cat then nothing - -mlr cat then nothing ./reg_test/input/abixy - -mlr tac then nothing ./reg_test/input/abixy - -mlr cat then nothing ./reg_test/input/abixy ./reg_test/input/abixy - -mlr cat then nothing then cat ./reg_test/input/abixy - - -================================================================ -IN-PLACE PROCESSING - -cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp1 -a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 -a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 -a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 -a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 -a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 -a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 -a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 -a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 -a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 -a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 - -cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp2 -a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 -a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 -a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 -a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 -a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 -a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 -a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 -a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 -a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 -a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 - -mlr -I --opprint head -n 2 /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp1 /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp2 - -cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp1 -a b i x y -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 - -cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp2 -a b i x y -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 - -mlr -I --opprint head -n 2 -mlr: -I option (in-place operation) requires input files. - -mlr -I --opprint -n head -n 2 /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp1 -mlr: -I option (in-place operation) requires input files. - -cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp1 -a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 -a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 -a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 -a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 -a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 -a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 -a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 -a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 -a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 -a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 - -cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp2 -a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 -a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 -a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 -a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 -a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 -a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 -a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 -a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 -a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 -a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 - -mlr -I --opprint rename a,AYE,b,BEE /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp1 /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp2 - -cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp1 -AYE BEE i x y -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp2 -AYE BEE i x y -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - - ================================================================ MAPPER TEE REDIRECTS @@ -43976,7755 +45318,6 @@ NR=x,_=0.38139939387114097 NR=y,_=0.13418874328430463 -================================================================ -OOSVAR-FROM-SREC ASSIGNMENT - -mlr put -v @v = $* /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="$*", type=FULL_SREC. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="$*", type=FULL_SREC. - - -mlr put -v @v[1] = $* /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - text="$*", type=FULL_SREC. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - text="$*", type=FULL_SREC. - - -mlr put -v @v[$2] = $* /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="2", type=FIELD_NAME. - text="$*", type=FULL_SREC. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="2", type=FIELD_NAME. - text="$*", type=FULL_SREC. - - -mlr put -v NR == 3 {@v = $*} /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="$*", type=FULL_SREC. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 - text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="$*", type=FULL_SREC. - - -mlr put -v NR == 3 {@v[1] = $*} /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - text="$*", type=FULL_SREC. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 - text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - text="$*", type=FULL_SREC. - - -mlr put -v NR == 3 {@v[$2] = $*} /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="2", type=FIELD_NAME. - text="$*", type=FULL_SREC. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 - text="=", type=OOSVAR_FROM_FULL_SREC_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="2", type=FIELD_NAME. - text="$*", type=FULL_SREC. - - -mlr --oxtab put -q @v = $*; end {emitp @v } ./reg_test/input/abixy-het -v:a pan -v:b wye -v:i 10 -v:x 0.5026260055412137 -v:y 0.9526183602969864 - -mlr --oxtab put -q @v[$a] = $*; end {emitp @v } ./reg_test/input/abixy-het -v:pan:a pan -v:pan:b wye -v:pan:i 10 -v:pan:x 0.5026260055412137 -v:pan:y 0.9526183602969864 -v:eks:a eks -v:eks:b zee -v:eks:iii 7 -v:eks:x 0.6117840605678454 -v:eks:y 0.1878849191181694 -v:wye:a wye -v:wye:b pan -v:wye:i 5 -v:wye:xxx 0.5732889198020006 -v:wye:y 0.8636244699032729 -v:zee:a zee -v:zee:b wye -v:zee:i 8 -v:zee:x 0.5985540091064224 -v:zee:yyy 0.976181385699006 - -mlr --oxtab put -q @v[$a] = $*; end {emitp @v, "a" } ./reg_test/input/abixy-het -a pan -v:a pan -v:b wye -v:i 10 -v:x 0.5026260055412137 -v:y 0.9526183602969864 - -a eks -v:a eks -v:b zee -v:iii 7 -v:x 0.6117840605678454 -v:y 0.1878849191181694 - -a wye -v:a wye -v:b pan -v:i 5 -v:xxx 0.5732889198020006 -v:y 0.8636244699032729 - -a zee -v:a zee -v:b wye -v:i 8 -v:x 0.5985540091064224 -v:yyy 0.976181385699006 - -mlr --oxtab put -q @v[$a][$b] = $*; end {emitp @v } ./reg_test/input/abixy-het -v:pan:pan:a pan -v:pan:pan:b pan -v:pan:pan:i 1 -v:pan:pan:x 0.3467901443380824 -v:pan:pan:y 0.7268028627434533 -v:pan:wye:a pan -v:pan:wye:b wye -v:pan:wye:i 10 -v:pan:wye:x 0.5026260055412137 -v:pan:wye:y 0.9526183602969864 -v:eks:pan:a eks -v:eks:pan:b pan -v:eks:pan:i 2 -v:eks:pan:x 0.7586799647899636 -v:eks:pan:y 0.5221511083334797 -v:eks:zee:a eks -v:eks:zee:b zee -v:eks:zee:iii 7 -v:eks:zee:x 0.6117840605678454 -v:eks:zee:y 0.1878849191181694 -v:wye:pan:a wye -v:wye:pan:b pan -v:wye:pan:i 5 -v:wye:pan:xxx 0.5732889198020006 -v:wye:pan:y 0.8636244699032729 -v:zee:pan:a zee -v:zee:pan:b pan -v:zee:pan:i 6 -v:zee:pan:x 0.5271261600918548 -v:zee:pan:y 0.49322128674835697 -v:zee:wye:a zee -v:zee:wye:b wye -v:zee:wye:i 8 -v:zee:wye:x 0.5985540091064224 -v:zee:wye:yyy 0.976181385699006 - -mlr --oxtab put -q @v[$a][$b] = $*; end {emitp @v, "a" } ./reg_test/input/abixy-het -a pan -v:pan:a pan -v:pan:b pan -v:pan:i 1 -v:pan:x 0.3467901443380824 -v:pan:y 0.7268028627434533 -v:wye:a pan -v:wye:b wye -v:wye:i 10 -v:wye:x 0.5026260055412137 -v:wye:y 0.9526183602969864 - -a eks -v:pan:a eks -v:pan:b pan -v:pan:i 2 -v:pan:x 0.7586799647899636 -v:pan:y 0.5221511083334797 -v:zee:a eks -v:zee:b zee -v:zee:iii 7 -v:zee:x 0.6117840605678454 -v:zee:y 0.1878849191181694 - -a wye -v:pan:a wye -v:pan:b pan -v:pan:i 5 -v:pan:xxx 0.5732889198020006 -v:pan:y 0.8636244699032729 - -a zee -v:pan:a zee -v:pan:b pan -v:pan:i 6 -v:pan:x 0.5271261600918548 -v:pan:y 0.49322128674835697 -v:wye:a zee -v:wye:b wye -v:wye:i 8 -v:wye:x 0.5985540091064224 -v:wye:yyy 0.976181385699006 - -mlr --oxtab put -q @v[$a][$b] = $*; end {emitp @v, "a", "b"} ./reg_test/input/abixy-het -a pan -b pan -v:a pan -v:b pan -v:i 1 -v:x 0.3467901443380824 -v:y 0.7268028627434533 - -a pan -b wye -v:a pan -v:b wye -v:i 10 -v:x 0.5026260055412137 -v:y 0.9526183602969864 - -a eks -b pan -v:a eks -v:b pan -v:i 2 -v:x 0.7586799647899636 -v:y 0.5221511083334797 - -a eks -b zee -v:a eks -v:b zee -v:iii 7 -v:x 0.6117840605678454 -v:y 0.1878849191181694 - -a wye -b pan -v:a wye -v:b pan -v:i 5 -v:xxx 0.5732889198020006 -v:y 0.8636244699032729 - -a zee -b pan -v:a zee -v:b pan -v:i 6 -v:x 0.5271261600918548 -v:y 0.49322128674835697 - -a zee -b wye -v:a zee -v:b wye -v:i 8 -v:x 0.5985540091064224 -v:yyy 0.976181385699006 - - -================================================================ -SREC-FROM-OOSVAR ASSIGNMENT - -mlr put -v $* = @v /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="=", type=FULL_SREC_ASSIGNMENT: - text="$*", type=FULL_SREC. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - text="=", type=FULL_SREC_ASSIGNMENT: - text="$*", type=FULL_SREC. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - - -mlr put -v $* = @v[1] /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="=", type=FULL_SREC_ASSIGNMENT: - text="$*", type=FULL_SREC. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - text="=", type=FULL_SREC_ASSIGNMENT: - text="$*", type=FULL_SREC. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - - -mlr put -v $* = @v[$2] /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="=", type=FULL_SREC_ASSIGNMENT: - text="$*", type=FULL_SREC. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="2", type=FIELD_NAME. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - text="=", type=FULL_SREC_ASSIGNMENT: - text="$*", type=FULL_SREC. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="2", type=FIELD_NAME. - - -mlr put -v NR == 3 {$* = @v } /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: - text="=", type=FULL_SREC_ASSIGNMENT: - text="$*", type=FULL_SREC. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 - text="=", type=FULL_SREC_ASSIGNMENT: - text="$*", type=FULL_SREC. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - - -mlr put -v NR == 3 {$* = @v[1] } /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: - text="=", type=FULL_SREC_ASSIGNMENT: - text="$*", type=FULL_SREC. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 - text="=", type=FULL_SREC_ASSIGNMENT: - text="$*", type=FULL_SREC. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - - -mlr put -v NR == 3 {$* = @v[$2]} /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: - text="=", type=FULL_SREC_ASSIGNMENT: - text="$*", type=FULL_SREC. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="2", type=FIELD_NAME. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 - text="=", type=FULL_SREC_ASSIGNMENT: - text="$*", type=FULL_SREC. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="2", type=FIELD_NAME. - - -mlr put @v[NR] = $a; NR == 7 { @v = $*} ; $* = @v ./reg_test/input/abixy-het -1=pan -1=pan,2=eks -1=pan,2=eks -1=pan,2=eks,4=eks -1=pan,2=eks,4=eks,5=wye -1=pan,2=eks,4=eks,5=wye,6=zee -a=eks,b=zee,iii=7,x=0.6117840605678454,y=0.1878849191181694 -a=eks,b=zee,iii=7,x=0.6117840605678454,y=0.1878849191181694,8=zee -a=eks,b=zee,iii=7,x=0.6117840605678454,y=0.1878849191181694,8=zee -a=eks,b=zee,iii=7,x=0.6117840605678454,y=0.1878849191181694,8=zee,10=pan - - -================================================================ -OOSVAR-FROM-OOSVAR ASSIGNMENT - -mlr put -v @u = @v /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - - -mlr put -v @u = @v[1] /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - - -mlr put -v @u[2] = @v /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="2", type=NUMERIC_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="2", type=NUMERIC_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - - -mlr put -v @u[2] = @v[1] /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="2", type=NUMERIC_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="2", type=NUMERIC_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - - -mlr put -v begin { @u = @v } /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="begin", type=BEGIN: - text="begin_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - -BLOCKED AST: - -BEGIN-BLOCK: -text="begin", type=BEGIN: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - text="begin_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - - -mlr put -v begin { @u = @v[1] } /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="begin", type=BEGIN: - text="begin_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - -BLOCKED AST: - -BEGIN-BLOCK: -text="begin", type=BEGIN: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - text="begin_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - - -mlr put -v begin { @u[2] = @v } /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="begin", type=BEGIN: - text="begin_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="2", type=NUMERIC_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - -BLOCKED AST: - -BEGIN-BLOCK: -text="begin", type=BEGIN: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - text="begin_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="2", type=NUMERIC_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - - -mlr put -v begin { @u[2] = @v[1] } /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="begin", type=BEGIN: - text="begin_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="2", type=NUMERIC_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - -BLOCKED AST: - -BEGIN-BLOCK: -text="begin", type=BEGIN: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - text="begin_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="2", type=NUMERIC_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - - -mlr put -v NR == 3 { @u = @v } /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - - -mlr put -v NR == 3 { @u = @v[1] } /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - - -mlr put -v NR == 3 { @u[2] = @v } /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="2", type=NUMERIC_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="2", type=NUMERIC_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - - -mlr put -v NR == 3 { @u[2] = @v[1] } /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="2", type=NUMERIC_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - -BLOCKED AST: - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=2 max_var_depth=1 - text="cond", type=CONDITIONAL_BLOCK: - text="==", type=OPERATOR: - text="NR", type=CONTEXT_VARIABLE. - text="3", type=NUMERIC_LITERAL. - text="cond_block", type=STATEMENT_BLOCK: subframe_var_count=0 - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="2", type=NUMERIC_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - - -mlr put -v end { @u = @v } /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="end", type=END: - text="end_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - -BLOCKED AST: - -END-BLOCK: -text="end", type=END: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - text="end_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - - -mlr put -v end { @u = @v[1] } /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="end", type=END: - text="end_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - -BLOCKED AST: - -END-BLOCK: -text="end", type=END: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - text="end_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - - -mlr put -v end { @u[2] = @v } /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="end", type=END: - text="end_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="2", type=NUMERIC_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - -BLOCKED AST: - -END-BLOCK: -text="end", type=END: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - text="end_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="2", type=NUMERIC_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - - -mlr put -v end { @u[2] = @v[1] } /dev/null -RAW AST: - -AST ROOT: -text="block", type=STATEMENT_BLOCK: - text="end", type=END: - text="end_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="2", type=NUMERIC_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - -BLOCKED AST: - -END-BLOCK: -text="end", type=END: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - text="end_block", type=STATEMENT_BLOCK: - text="=", type=OOSVAR_ASSIGNMENT: - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="u", type=STRING_LITERAL. - text="2", type=NUMERIC_LITERAL. - text="oosvar_keylist", type=OOSVAR_KEYLIST: - text="v", type=STRING_LITERAL. - text="1", type=NUMERIC_LITERAL. - -MAIN BLOCK: -text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1 - - -mlr put -q @s += $i; @t=@s; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy -{ - "s": 55, - "t": 55 -} -s=55 -t=55 - -mlr put -q @s[1] += $i; @t=@s; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy -{ - "s": { - "1": 55 - }, - "t": { - "1": 55 - } -} -s:1=55 -t:1=55 - -mlr put -q @s[1] += $i; @t=@s[1]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy -{ - "s": { - "1": 55 - }, - "t": 55 -} -s:1=55 -t=55 - -mlr put -q @s[1] += $i; @t[3]=@s; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy -{ - "s": { - "1": 55 - }, - "t": { - "3": { - "1": 55 - } - } -} -s:1=55 -t:3:1=55 - -mlr put -q @s[1] += $i; @t[3]=@s[1]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy -{ - "s": { - "1": 55 - }, - "t": { - "3": 55 - } -} -s:1=55 -t:3=55 - -mlr put -q @s[1][2] += $i; @t=@s; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy -{ - "s": { - "1": { - "2": 55 - } - }, - "t": { - "1": { - "2": 55 - } - } -} -s:1:2=55 -t:1:2=55 - -mlr put -q @s[1][2] += $i; @t=@s[1]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy -{ - "s": { - "1": { - "2": 55 - } - }, - "t": { - "2": 55 - } -} -s:1:2=55 -t:2=55 - -mlr put -q @s[1][2] += $i; @t=@s[1][2]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy -{ - "s": { - "1": { - "2": 55 - } - }, - "t": 55 -} -s:1:2=55 -t=55 - -mlr put -q @s[1][2] += $i; @t[3]=@s; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy -{ - "s": { - "1": { - "2": 55 - } - }, - "t": { - "3": { - "1": { - "2": 55 - } - } - } -} -s:1:2=55 -t:3:1:2=55 - -mlr put -q @s[1][2] += $i; @t[3]=@s[1]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy -{ - "s": { - "1": { - "2": 55 - } - }, - "t": { - "3": { - "2": 55 - } - } -} -s:1:2=55 -t:3:2=55 - -mlr put -q @s[1][2] += $i; @t[3]=@s[1][2]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy -{ - "s": { - "1": { - "2": 55 - } - }, - "t": { - "3": 55 - } -} -s:1:2=55 -t:3=55 - -mlr put -q @s[1][2] += $i; @t[3][4]=@s; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy -{ - "s": { - "1": { - "2": 55 - } - }, - "t": { - "3": { - "4": { - "1": { - "2": 55 - } - } - } - } -} -s:1:2=55 -t:3:4:1:2=55 - -mlr put -q @s[1][2] += $i; @t[3][4]=@s[1]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy -{ - "s": { - "1": { - "2": 55 - } - }, - "t": { - "3": { - "4": { - "2": 55 - } - } - } -} -s:1:2=55 -t:3:4:2=55 - -mlr put -q @s[1][2] += $i; @t[3][4]=@s[1][2]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy -{ - "s": { - "1": { - "2": 55 - } - }, - "t": { - "3": { - "4": 55 - } - } -} -s:1:2=55 -t:3:4=55 - -mlr --opprint put -q @s[NR][NR] = $i/100; @t[NR*10]=@s; end{emitp@s,"A","B"; emitp @t,"C","D","E"} ./reg_test/input/abixy -A B s -1 1 0.010000 -2 2 0.020000 -3 3 0.030000 -4 4 0.040000 -5 5 0.050000 -6 6 0.060000 -7 7 0.070000 -8 8 0.080000 -9 9 0.090000 -10 10 0.100000 - -C D E t -10 1 1 0.010000 -20 1 1 0.010000 -20 2 2 0.020000 -30 1 1 0.010000 -30 2 2 0.020000 -30 3 3 0.030000 -40 1 1 0.010000 -40 2 2 0.020000 -40 3 3 0.030000 -40 4 4 0.040000 -50 1 1 0.010000 -50 2 2 0.020000 -50 3 3 0.030000 -50 4 4 0.040000 -50 5 5 0.050000 -60 1 1 0.010000 -60 2 2 0.020000 -60 3 3 0.030000 -60 4 4 0.040000 -60 5 5 0.050000 -60 6 6 0.060000 -70 1 1 0.010000 -70 2 2 0.020000 -70 3 3 0.030000 -70 4 4 0.040000 -70 5 5 0.050000 -70 6 6 0.060000 -70 7 7 0.070000 -80 1 1 0.010000 -80 2 2 0.020000 -80 3 3 0.030000 -80 4 4 0.040000 -80 5 5 0.050000 -80 6 6 0.060000 -80 7 7 0.070000 -80 8 8 0.080000 -90 1 1 0.010000 -90 2 2 0.020000 -90 3 3 0.030000 -90 4 4 0.040000 -90 5 5 0.050000 -90 6 6 0.060000 -90 7 7 0.070000 -90 8 8 0.080000 -90 9 9 0.090000 -100 1 1 0.010000 -100 2 2 0.020000 -100 3 3 0.030000 -100 4 4 0.040000 -100 5 5 0.050000 -100 6 6 0.060000 -100 7 7 0.070000 -100 8 8 0.080000 -100 9 9 0.090000 -100 10 10 0.100000 - - -================================================================ -CHAINING - -mlr cat then cat ./reg_test/input/short -a=1 -b=2 -c=3 - -mlr cat then tac ./reg_test/input/short -c=3 -b=2 -a=1 - -mlr tac then cat ./reg_test/input/short -c=3 -b=2 -a=1 - -mlr tac then tac ./reg_test/input/short -a=1 -b=2 -c=3 - -mlr cat then cat then cat ./reg_test/input/short -a=1 -b=2 -c=3 - -mlr cat then cat then tac ./reg_test/input/short -c=3 -b=2 -a=1 - -mlr cat then tac then cat ./reg_test/input/short -c=3 -b=2 -a=1 - -mlr cat then tac then tac ./reg_test/input/short -a=1 -b=2 -c=3 - -mlr tac then cat then cat ./reg_test/input/short -c=3 -b=2 -a=1 - -mlr tac then cat then tac ./reg_test/input/short -a=1 -b=2 -c=3 - -mlr tac then tac then cat ./reg_test/input/short -a=1 -b=2 -c=3 - -mlr tac then tac then tac ./reg_test/input/short -c=3 -b=2 -a=1 - - -================================================================ -NUMBER FORMATTING - -mlr --opprint stats1 -a sum -f x ./reg_test/input/ofmt.dat -x_sum -6 - -mlr --ofmt %.3lf --opprint stats1 -a sum -f x ./reg_test/input/ofmt.dat -x_sum -6 - -mlr --opprint --ofmt %.3lf stats1 -a sum -f x ./reg_test/input/ofmt.dat -x_sum -6 - - -================================================================ -IMPLICIT-HEADER-CSV INPUT - -mlr --irs crlf --icsvlite --ifs , --opprint cut -x -f b/ ./reg_test/input/multi-sep.csv-crlf -a/ i/ x/ y/ -wye/ 0/ 0.641593543645736508/ 0.262688053894177098 -eks/ 1/ 0.827614412562742041/ 0.715431942006308552 -zee/ 2/ 0.923068348748175560/ 0.009737410587136359 -zee/ 3/ 0.000047786161325772/ 0.803142013402256216 -zee/ 4/ 0.676537984365847889/ 0.573903236805416328 - -mlr --irs crlf --implicit-csv-header --icsvlite --ifs , --opprint cut -x -f 2 ./reg_test/input/multi-sep.csv-crlf -1 3 4 5 -a/ i/ x/ y/ -wye/ 0/ 0.641593543645736508/ 0.262688053894177098 -eks/ 1/ 0.827614412562742041/ 0.715431942006308552 -zee/ 2/ 0.923068348748175560/ 0.009737410587136359 -zee/ 3/ 0.000047786161325772/ 0.803142013402256216 -zee/ 4/ 0.676537984365847889/ 0.573903236805416328 - -mlr --irs crlf --icsvlite --ifs /, --opprint cut -x -f b ./reg_test/input/multi-sep.csv-crlf -a i x y/ -wye 0 0.641593543645736508 0.262688053894177098 -eks 1 0.827614412562742041 0.715431942006308552 -zee 2 0.923068348748175560 0.009737410587136359 -zee 3 0.000047786161325772 0.803142013402256216 -zee 4 0.676537984365847889 0.573903236805416328 - -mlr --irs crlf --implicit-csv-header --icsvlite --ifs /, --opprint cut -x -f 2 ./reg_test/input/multi-sep.csv-crlf -1 3 4 5 -a i x y/ -wye 0 0.641593543645736508 0.262688053894177098 -eks 1 0.827614412562742041 0.715431942006308552 -zee 2 0.923068348748175560 0.009737410587136359 -zee 3 0.000047786161325772 0.803142013402256216 -zee 4 0.676537984365847889 0.573903236805416328 - -mlr --icsv --ifs , --opprint cut -x -f b/ ./reg_test/input/multi-sep.csv-crlf -a/ i/ x/ y/ -wye/ 0/ 0.641593543645736508/ 0.262688053894177098 -eks/ 1/ 0.827614412562742041/ 0.715431942006308552 -zee/ 2/ 0.923068348748175560/ 0.009737410587136359 -zee/ 3/ 0.000047786161325772/ 0.803142013402256216 -zee/ 4/ 0.676537984365847889/ 0.573903236805416328 - -mlr --implicit-csv-header --icsv --ifs , --opprint cut -x -f 2 ./reg_test/input/multi-sep.csv-crlf -1 3 4 5 -a/ i/ x/ y/ -wye/ 0/ 0.641593543645736508/ 0.262688053894177098 -eks/ 1/ 0.827614412562742041/ 0.715431942006308552 -zee/ 2/ 0.923068348748175560/ 0.009737410587136359 -zee/ 3/ 0.000047786161325772/ 0.803142013402256216 -zee/ 4/ 0.676537984365847889/ 0.573903236805416328 - -mlr --icsv --ifs /, --opprint cut -x -f b ./reg_test/input/multi-sep.csv-crlf -a i x y/ -wye 0 0.641593543645736508 0.262688053894177098 -eks 1 0.827614412562742041 0.715431942006308552 -zee 2 0.923068348748175560 0.009737410587136359 -zee 3 0.000047786161325772 0.803142013402256216 -zee 4 0.676537984365847889 0.573903236805416328 - -mlr --implicit-csv-header --icsv --ifs /, --opprint cut -x -f 2 ./reg_test/input/multi-sep.csv-crlf -1 3 4 5 -a i x y/ -wye 0 0.641593543645736508 0.262688053894177098 -eks 1 0.827614412562742041 0.715431942006308552 -zee 2 0.923068348748175560 0.009737410587136359 -zee 3 0.000047786161325772 0.803142013402256216 -zee 4 0.676537984365847889 0.573903236805416328 - -mlr --csv -N reorder -f 1,3,2,5,4 ./reg_test/input/multi-sep.csv-crlf -a/,i/,b/,y/,x/ -wye/,0/,eks/,0.262688053894177098,0.641593543645736508/ -eks/,1/,zee/,0.715431942006308552,0.827614412562742041/ -zee/,2/,zee/,0.009737410587136359,0.923068348748175560/ -zee/,3/,pan/,0.803142013402256216,0.000047786161325772/ -zee/,4/,hat/,0.573903236805416328,0.676537984365847889/ - -mlr --csv -N reorder -f 5,4,3,2,1 ./reg_test/input/multi-sep.csv-crlf -y/,x/,i/,b/,a/ -0.262688053894177098,0.641593543645736508/,0/,eks/,wye/ -0.715431942006308552,0.827614412562742041/,1/,zee/,eks/ -0.009737410587136359,0.923068348748175560/,2/,zee/,zee/ -0.803142013402256216,0.000047786161325772/,3/,pan/,zee/ -0.573903236805416328,0.676537984365847889/,4/,hat/,zee/ - - -================================================================ -HET-CSV INPUT - -mlr --icsvlite --odkvp cat ./reg_test/input/a.csv -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --icsvlite --odkvp cat ./reg_test/input/b.csv -d=5,e=6,f=7 - -mlr --icsvlite --odkvp cat ./reg_test/input/c.csv -a=1,b=2,c=3 -a=4,b=5,c=6 -a=7,b=8,c=9 - -mlr --icsvlite --odkvp cat ./reg_test/input/d.csv -h=3,i=4,j=5 -m=8,n=9,o=10 - -mlr --icsvlite --odkvp cat ./reg_test/input/e.csv -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --icsvlite --odkvp cat ./reg_test/input/f.csv - -mlr --icsvlite --odkvp cat ./reg_test/input/g.csv - -mlr --icsvlite --odkvp cat ./reg_test/input/a.csv ./reg_test/input/a.csv -a=1,b=2,c=3 -a=4,b=5,c=6 -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --icsvlite --odkvp cat ./reg_test/input/b.csv ./reg_test/input/b.csv -d=5,e=6,f=7 -d=5,e=6,f=7 - -mlr --icsvlite --odkvp cat ./reg_test/input/c.csv ./reg_test/input/c.csv -a=1,b=2,c=3 -a=4,b=5,c=6 -a=7,b=8,c=9 -a=1,b=2,c=3 -a=4,b=5,c=6 -a=7,b=8,c=9 - -mlr --icsvlite --odkvp cat ./reg_test/input/d.csv ./reg_test/input/d.csv -h=3,i=4,j=5 -m=8,n=9,o=10 -h=3,i=4,j=5 -m=8,n=9,o=10 - -mlr --icsvlite --odkvp cat ./reg_test/input/e.csv ./reg_test/input/e.csv -a=1,b=2,c=3 -a=4,b=5,c=6 -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --icsvlite --odkvp cat ./reg_test/input/f.csv ./reg_test/input/f.csv - -mlr --icsvlite --odkvp cat ./reg_test/input/g.csv ./reg_test/input/g.csv - -mlr --icsvlite --odkvp cat ./reg_test/input/a.csv ./reg_test/input/b.csv -a=1,b=2,c=3 -a=4,b=5,c=6 -d=5,e=6,f=7 - -mlr --icsvlite --odkvp cat ./reg_test/input/b.csv ./reg_test/input/c.csv -d=5,e=6,f=7 -a=1,b=2,c=3 -a=4,b=5,c=6 -a=7,b=8,c=9 - -mlr --icsvlite --odkvp cat ./reg_test/input/c.csv ./reg_test/input/d.csv -a=1,b=2,c=3 -a=4,b=5,c=6 -a=7,b=8,c=9 -h=3,i=4,j=5 -m=8,n=9,o=10 - -mlr --icsvlite --odkvp cat ./reg_test/input/d.csv ./reg_test/input/e.csv -h=3,i=4,j=5 -m=8,n=9,o=10 -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --icsvlite --odkvp cat ./reg_test/input/e.csv ./reg_test/input/f.csv -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --icsvlite --odkvp cat ./reg_test/input/f.csv ./reg_test/input/g.csv - -mlr --icsvlite --odkvp cat ./reg_test/input/a.csv ./reg_test/input/b.csv ./reg_test/input/c.csv ./reg_test/input/d.csv ./reg_test/input/e.csv ./reg_test/input/f.csv ./reg_test/input/g.csv -a=1,b=2,c=3 -a=4,b=5,c=6 -d=5,e=6,f=7 -a=1,b=2,c=3 -a=4,b=5,c=6 -a=7,b=8,c=9 -h=3,i=4,j=5 -m=8,n=9,o=10 -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --icsvlite --odkvp tac ./reg_test/input/het.csv -resource=/some/other/path,loadsec=0.97,ok=false -record_count=150,resource=/path/to/second/file -resource=/path/to/second/file,loadsec=0.32,ok=true -record_count=100,resource=/path/to/file -resource=/path/to/file,loadsec=0.45,ok=true - -mlr --headerless-csv-output --csvlite tac ./reg_test/input/a.csv -4,5,6 -1,2,3 - -mlr --headerless-csv-output --csvlite tac ./reg_test/input/c.csv -7,8,9 -4,5,6 -1,2,3 - -mlr --headerless-csv-output --csvlite tac ./reg_test/input/a.csv ./reg_test/input/c.csv -7,8,9 -4,5,6 -1,2,3 -4,5,6 -1,2,3 - -mlr --headerless-csv-output --csvlite tac ./reg_test/input/het.csv -/some/other/path,0.97,false - -150,/path/to/second/file - -/path/to/second/file,0.32,true - -100,/path/to/file - -/path/to/file,0.45,true - -mlr --headerless-csv-output --csvlite group-like ./reg_test/input/het.csv -/path/to/file,0.45,true -/path/to/second/file,0.32,true -/some/other/path,0.97,false - -100,/path/to/file -150,/path/to/second/file - - -================================================================ -HET-PPRINT INPUT - -mlr --ipprint --odkvp cat ./reg_test/input/a.pprint -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --ipprint --odkvp cat ./reg_test/input/b.pprint -d=5,e=6,f=7 - -mlr --ipprint --odkvp cat ./reg_test/input/c.pprint -a=1,b=2,c=3 -a=4,b=5,c=6 -a=7,b=8,c=9 - -mlr --ipprint --odkvp cat ./reg_test/input/d.pprint -h=3,i=4,j=5 -m=8,n=9,o=10 - -mlr --ipprint --odkvp cat ./reg_test/input/e.pprint -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --ipprint --odkvp cat ./reg_test/input/f.pprint - -mlr --ipprint --odkvp cat ./reg_test/input/g.pprint - -mlr --ipprint --odkvp cat ./reg_test/input/a.pprint ./reg_test/input/a.pprint -a=1,b=2,c=3 -a=4,b=5,c=6 -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --ipprint --odkvp cat ./reg_test/input/b.pprint ./reg_test/input/b.pprint -d=5,e=6,f=7 -d=5,e=6,f=7 - -mlr --ipprint --odkvp cat ./reg_test/input/c.pprint ./reg_test/input/c.pprint -a=1,b=2,c=3 -a=4,b=5,c=6 -a=7,b=8,c=9 -a=1,b=2,c=3 -a=4,b=5,c=6 -a=7,b=8,c=9 - -mlr --ipprint --odkvp cat ./reg_test/input/d.pprint ./reg_test/input/d.pprint -h=3,i=4,j=5 -m=8,n=9,o=10 -h=3,i=4,j=5 -m=8,n=9,o=10 - -mlr --ipprint --odkvp cat ./reg_test/input/e.pprint ./reg_test/input/e.pprint -a=1,b=2,c=3 -a=4,b=5,c=6 -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --ipprint --odkvp cat ./reg_test/input/f.pprint ./reg_test/input/f.pprint - -mlr --ipprint --odkvp cat ./reg_test/input/g.pprint ./reg_test/input/g.pprint - -mlr --ipprint --odkvp cat ./reg_test/input/a.pprint ./reg_test/input/b.pprint -a=1,b=2,c=3 -a=4,b=5,c=6 -d=5,e=6,f=7 - -mlr --ipprint --odkvp cat ./reg_test/input/b.pprint ./reg_test/input/c.pprint -d=5,e=6,f=7 -a=1,b=2,c=3 -a=4,b=5,c=6 -a=7,b=8,c=9 - -mlr --ipprint --odkvp cat ./reg_test/input/c.pprint ./reg_test/input/d.pprint -a=1,b=2,c=3 -a=4,b=5,c=6 -a=7,b=8,c=9 -h=3,i=4,j=5 -m=8,n=9,o=10 - -mlr --ipprint --odkvp cat ./reg_test/input/d.pprint ./reg_test/input/e.pprint -h=3,i=4,j=5 -m=8,n=9,o=10 -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --ipprint --odkvp cat ./reg_test/input/e.pprint ./reg_test/input/f.pprint -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --ipprint --odkvp cat ./reg_test/input/f.pprint ./reg_test/input/g.pprint - -mlr --ipprint --odkvp cat ./reg_test/input/a.pprint ./reg_test/input/b.pprint ./reg_test/input/c.pprint ./reg_test/input/d.pprint ./reg_test/input/e.pprint ./reg_test/input/f.pprint ./reg_test/input/g.pprint -a=1,b=2,c=3 -a=4,b=5,c=6 -d=5,e=6,f=7 -a=1,b=2,c=3 -a=4,b=5,c=6 -a=7,b=8,c=9 -h=3,i=4,j=5 -m=8,n=9,o=10 -a=1,b=2,c=3 -a=4,b=5,c=6 - - -================================================================ -NULL-FIELD INPUT - -mlr --icsvlite --odkvp cat ./reg_test/input/null-fields.csv -a=1,b=2,c=3,d=4,e=5 -a=6,b=,c=,d=,e=10 -a=,b=,c=,d=11,e=12 -a=13,b=14,c=,d=,e= -a=,b=,c=,d=,e= - -mlr --inidx --ifs comma --odkvp cat ./reg_test/input/null-fields.nidx -1=a,2=b,3=c,4=d,5=e -1=f,2=,3=,4=,5=g -1=,2=,3=,4=h,5=i -1=j,2=k,3=,4=,5= -1=,2=,3=,4=,5= - -mlr --idkvp --oxtab cat ./reg_test/input/missings.dkvp -a 1 -b 2 -c 3 -d 4 -e 5 -f 6 - -1 a -b -x 4 -c 3 -5 d -6 e -7 f - -1 a -b -x 4 -c 3 -5 d -6 e -f 6 - -mlr --oxtab stats1 -a sum,min,max,antimode,mode -f x ./reg_test/input/nullvals.dkvp -x_sum 9 -x_min 1 -x_max 5 -x_antimode 1 -x_mode 1 - -mlr --oxtab stats1 -a sum,min,max,antimode,mode -f y ./reg_test/input/nullvals.dkvp -y_sum 12 -y_min 2 -y_max 6 -y_antimode 2 -y_mode 2 - -mlr --oxtab stats1 -a sum,min,max,antimode,mode -f z ./reg_test/input/nullvals.dkvp -z_sum 0 -z_min -z_max -z_antimode -z_mode - -mlr --oxtab stats1 -a sum,min,max,antimode,mode -f x,y,z ./reg_test/input/nullvals.dkvp -x_sum 9 -x_min 1 -x_max 5 -x_antimode 1 -x_mode 1 -y_sum 12 -y_min 2 -y_max 6 -y_antimode 2 -y_mode 2 -z_sum 0 -z_min -z_max -z_antimode -z_mode - -mlr --oxtab stats1 -a sum,min,max,antimode,mode -f x -g a ./reg_test/input/nullvals.dkvp -a b -x_sum 9 -x_min 1 -x_max 5 -x_antimode 1 -x_mode 1 - -mlr --oxtab stats1 -a sum,min,max,antimode,mode -f y -g a ./reg_test/input/nullvals.dkvp -a b -y_sum 12 -y_min 2 -y_max 6 -y_antimode 2 -y_mode 2 - -mlr --oxtab stats1 -a sum,min,max,antimode,mode -f z -g a ./reg_test/input/nullvals.dkvp -a b -z_sum 0 -z_min -z_max -z_antimode -z_mode - -mlr --oxtab stats1 -a sum,min,max,antimode,mode -f x,y,z -g a ./reg_test/input/nullvals.dkvp -a b -x_sum 9 -x_min 1 -x_max 5 -x_antimode 1 -x_mode 1 -y_sum 12 -y_min 2 -y_max 6 -y_antimode 2 -y_mode 2 -z_sum 0 -z_min -z_max -z_antimode -z_mode - -mlr --opprint merge-fields -a sum,min,max,antimode,mode -f x,y,z -o xyz ./reg_test/input/nullvals.dkvp -a xyz_sum xyz_min xyz_max xyz_antimode xyz_mode -b 3 1 2 1 1 -b 7 3 4 3 3 -b 5 5 5 5 5 -b 6 6 6 6 6 -b 0 - - - - - -mlr --opprint merge-fields -a sum,min,max,antimode,mode -r x,y,z -o xyz ./reg_test/input/nullvals.dkvp -a xyz_sum xyz_min xyz_max xyz_antimode xyz_mode -b 3 1 2 1 1 -b 7 3 4 3 3 -b 5 5 5 5 5 -b 6 6 6 6 6 -b 0 - - - - - -mlr --opprint merge-fields -a sum,min,max,antimode,mode -c x,y,z ./reg_test/input/nullvals.dkvp -a _sum _min _max _antimode _mode -b 3 1 2 1 1 -b 7 3 4 3 3 -b 5 5 5 5 5 -b 6 6 6 6 6 -b 0 - - - - - -mlr --oxtab stats2 -a cov -f x,y ./reg_test/input/nullvals.dkvp -x_y_cov 2.000000 - -mlr --oxtab stats2 -a cov -f x,z ./reg_test/input/nullvals.dkvp - -mlr --oxtab stats2 -a cov -f y,z ./reg_test/input/nullvals.dkvp - -mlr --oxtab stats2 -a cov -f x,y -g a ./reg_test/input/nullvals.dkvp -a b -x_y_cov 2.000000 - -mlr --oxtab stats2 -a cov -f x,z -g a ./reg_test/input/nullvals.dkvp -a b - -mlr --oxtab stats2 -a cov -f y,z -g a ./reg_test/input/nullvals.dkvp -a b - -mlr --opprint top -n 5 -f x ./reg_test/input/nullvals.dkvp -top_idx x_top -1 5 -2 3 -3 1 -4 - -5 - - -mlr --opprint top -n 5 -f y ./reg_test/input/nullvals.dkvp -top_idx y_top -1 6 -2 4 -3 2 -4 - -5 - - -mlr --opprint top -n 5 -f z ./reg_test/input/nullvals.dkvp -top_idx z_top -1 - -2 - -3 - -4 - -5 - - -mlr --opprint top -n 5 -f x,y,z ./reg_test/input/nullvals.dkvp -top_idx x_top y_top z_top -1 5 6 - -2 3 4 - -3 1 2 - -4 - - - -5 - - - - -mlr --opprint top -n 5 -f x -g a ./reg_test/input/nullvals.dkvp -a top_idx x_top -b 1 5 -b 2 3 -b 3 1 -b 4 - -b 5 - - -mlr --opprint top -n 5 -f y -g a ./reg_test/input/nullvals.dkvp -a top_idx y_top -b 1 6 -b 2 4 -b 3 2 -b 4 - -b 5 - - -mlr --opprint top -n 5 -f z -g a ./reg_test/input/nullvals.dkvp -a top_idx z_top -b 1 - -b 2 - -b 3 - -b 4 - -b 5 - - -mlr --opprint top -n 5 -f x,y,z -g a ./reg_test/input/nullvals.dkvp -a top_idx x_top y_top z_top -b 1 5 6 - -b 2 3 4 - -b 3 1 2 - -b 4 - - - -b 5 - - - - -mlr --opprint top -a -n 5 -f x ./reg_test/input/nullvals.dkvp -a x y z -b 5 - - -b 3 4 - -b 1 2 - - -mlr --opprint top -a -n 5 -f y ./reg_test/input/nullvals.dkvp -a x y z -b - 6 - -b 3 4 - -b 1 2 - - -mlr --opprint top -a -n 5 -f z ./reg_test/input/nullvals.dkvp - -mlr --opprint top -a -n 5 -f x -g a ./reg_test/input/nullvals.dkvp -a x y z -b 5 - - -b 3 4 - -b 1 2 - - -mlr --opprint top -a -n 5 -f y -g a ./reg_test/input/nullvals.dkvp -a x y z -b - 6 - -b 3 4 - -b 1 2 - - -mlr --opprint top -a -n 5 -f z -g a ./reg_test/input/nullvals.dkvp - -mlr --opprint top -n 5 -f x -o foo ./reg_test/input/nullvals.dkvp -foo x_top -1 5 -2 3 -3 1 -4 - -5 - - -mlr --opprint top -n 5 -f x -g a -o foo ./reg_test/input/nullvals.dkvp -a foo x_top -b 1 5 -b 2 3 -b 3 1 -b 4 - -b 5 - - -mlr --opprint top -a -n 5 -f x -o foo ./reg_test/input/nullvals.dkvp -a x y z -b 5 - - -b 3 4 - -b 1 2 - - -mlr --opprint top -a -n 5 -f z -o foo -g a ./reg_test/input/nullvals.dkvp - -mlr --opprint step -a counter,rsum -f x ./reg_test/input/nullvals.dkvp -a x y z x_counter x_rsum -b 1 2 - 1 1 -b 3 4 - 2 4 -b 5 - - 3 9 -b - 6 - - - -b - - - - - - -mlr --opprint step -a counter,rsum -f y ./reg_test/input/nullvals.dkvp -a x y z y_counter y_rsum -b 1 2 - 1 2 -b 3 4 - 2 6 -b 5 - - - - -b - 6 - 3 12 -b - - - - - - -mlr --opprint step -a counter,rsum -f z ./reg_test/input/nullvals.dkvp -a x y z z_counter z_rsum -b 1 2 - - - -b 3 4 - - - -b 5 - - - - -b - 6 - - - -b - - - - - - -mlr --opprint step -a counter,rsum -f x,y,z ./reg_test/input/nullvals.dkvp -a x y z x_counter x_rsum y_counter y_rsum z_counter z_rsum -b 1 2 - 1 1 1 2 - - -b 3 4 - 2 4 2 6 - - -b 5 - - 3 9 - - - - -b - 6 - - - 3 12 - - -b - - - - - - - - - - -mlr --opprint step -a counter,rsum -f x -g a ./reg_test/input/nullvals.dkvp -a x y z x_counter x_rsum -b 1 2 - 1 1 -b 3 4 - 2 4 -b 5 - - 3 9 -b - 6 - - - -b - - - - - - -mlr --opprint step -a counter,rsum -f y -g a ./reg_test/input/nullvals.dkvp -a x y z y_counter y_rsum -b 1 2 - 1 2 -b 3 4 - 2 6 -b 5 - - - - -b - 6 - 3 12 -b - - - - - - -mlr --opprint step -a counter,rsum -f z -g a ./reg_test/input/nullvals.dkvp -a x y z z_counter z_rsum -b 1 2 - - - -b 3 4 - - - -b 5 - - - - -b - 6 - - - -b - - - - - - -mlr --opprint step -a counter,rsum -f x,y,z -g a ./reg_test/input/nullvals.dkvp -a x y z x_counter x_rsum y_counter y_rsum z_counter z_rsum -b 1 2 - 1 1 1 2 - - -b 3 4 - 2 4 2 6 - - -b 5 - - 3 9 - - - - -b - 6 - - - 3 12 - - -b - - - - - - - - - - - -================================================================ -SPACE-PADDING - -mlr --idkvp --odkvp --ifs space --repifs cat ./reg_test/input/space-pad.dkvp -a=1,b=2 -c=3 - -mlr --inidx --odkvp --ifs space --repifs cat ./reg_test/input/space-pad.nidx -1=a,2=b,3=c -1=d,2=e,3=f - -mlr --icsvlite --odkvp --ifs space --repifs cat ./reg_test/input/space-pad.pprint -a=1,b=2,c=3 - - -================================================================ -DOUBLE PS - -mlr --opprint cat ./reg_test/input/double-ps.dkvp -a b c -pan wy.e 3 -pan wy=e 3 - - -================================================================ -MISSING FINAL LF - -mlr --csvlite cat ./reg_test/input/truncated.csv -a,b,c -1,2,3 -4,5,6 -7,8,9 - -mlr --dkvp cat ./reg_test/input/truncated.dkvp -a=1,b=2 -c=3 - -mlr --nidx cat ./reg_test/input/truncated.nidx -1 2 3 -4 5 - -mlr --pprint cat ./reg_test/input/truncated.pprint -a b c -1 2 3 -4 5 6 -7 8 9 - -mlr --xtab cat ./reg_test/input/truncated.xtab-crlf -a 1 -b 2 -c 3 - -d 4 -e 5 - - -================================================================ -UTF-8 alignment - -mlr --icsvlite --opprint cat ./reg_test/input/utf8-1.csv -langue nom jour -français françois vendredi -žusz éloignée - - -mlr --icsvlite --opprint cat ./reg_test/input/utf8-2.csv -français françois vendredi -langue nom jour - -mlr --icsvlite --oxtab cat ./reg_test/input/utf8-1.csv -langue français -nom françois -jour vendredi - -langue žusz -nom éloignée -jour - -mlr --icsvlite --oxtab cat ./reg_test/input/utf8-2.csv -français langue -françois nom -vendredi jour - -mlr --inidx --ifs space --opprint cat ./reg_test/input/utf8-align.nidx -1 2 -191º test -191 test2 -francois français -françois francais - -mlr --inidx --ifs space --opprint --right cat ./reg_test/input/utf8-align.nidx - 1 2 - 191º test - 191 test2 -francois français -françois francais - -mlr --oxtab cat ./reg_test/input/utf8-align.dkvp -191º test -1912 test2 -cois çais -çois cais - -191º test -1912 test2 -ois çais -çois cais - -191º test -1912 test2 -coise çais -çois cais - -mlr --inidx --ifs space --oxtab --xvright cat ./reg_test/input/utf8-align.nidx -1 191º -2 test - -1 191 -2 test2 - -1 francois -2 français - -1 françois -2 francais - - -================================================================ -UTF-8 BOM - -mlr --icsv --opprint cat ./reg_test/input/bom.csv -a b c -1 2 3 -4 5 6 - -mlr --icsv --opprint cat -a b c -1 2 3 -4 5 6 - -mlr --icsv --opprint cat ./reg_test/input/bom-dquote-header.csv -a b c -1 2 3 -4 5 6 - -mlr --icsv --opprint cat -a b c -1 2 3 -4 5 6 - - -================================================================ -UTF-8 UPPERCASE/LOWERCASE - -mlr --icsvlite --opprint put $langue = toupper($langue) ./reg_test/input/utf8-1.csv -langue nom jour -FRANÇAIS françois vendredi -ŽUSZ éloignée - - -mlr --icsvlite --opprint put $nom = toupper($nom) ./reg_test/input/utf8-1.csv -langue nom jour -français FRANÇOIS vendredi -žusz ÉLOIGNÉE - - -mlr --icsvlite --opprint put $jour = toupper($jour) ./reg_test/input/utf8-1.csv -langue nom jour -français françois VENDREDI -žusz éloignée - - -mlr --icsvlite --opprint put $langue = capitalize($langue) ./reg_test/input/utf8-1.csv -langue nom jour -Français françois vendredi -Žusz éloignée - - -mlr --icsvlite --opprint put $nom = capitalize($nom) ./reg_test/input/utf8-1.csv -langue nom jour -français François vendredi -žusz Éloignée - - -mlr --icsvlite --opprint put $jour = capitalize($jour) ./reg_test/input/utf8-1.csv -langue nom jour -français françois Vendredi -žusz éloignée - - - -================================================================ -SKIP/PASS COMMENTS DKVP - - ----------------------------------------------------------------- input comments1.dkvp -cat ./reg_test/input/comments/comments1.dkvp -# hello world 1 -a=1,b=2,c=3 -a=4,b=5,c=6 - - ----------------------------------------------------------------- skip comments1.dkvp -mlr --skip-comments --idkvp --oxtab cat -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - -mlr --skip-comments --idkvp --oxtab cat ./reg_test/input/comments/comments1.dkvp -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - - ----------------------------------------------------------------- pass comments1.dkvp -mlr --pass-comments --idkvp --oxtab cat -# hello world 1 -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - -mlr --pass-comments --idkvp --oxtab cat ./reg_test/input/comments/comments1.dkvp -# hello world 1 -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - - ----------------------------------------------------------------- input comments2.dkvp -cat ./reg_test/input/comments/comments2.dkvp -a=1,b=2,c=3 -# hello world 2 -a=4,b=5,c=6 - - ----------------------------------------------------------------- skip comments2.dkvp -mlr --skip-comments --idkvp --oxtab cat -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - -mlr --skip-comments --idkvp --oxtab cat ./reg_test/input/comments/comments2.dkvp -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - - ----------------------------------------------------------------- pass comments2.dkvp -mlr --pass-comments --idkvp --oxtab cat -a 1 -b 2 -c 3 -# hello world 2 - -a 4 -b 5 -c 6 - -mlr --pass-comments --idkvp --oxtab cat ./reg_test/input/comments/comments2.dkvp -a 1 -b 2 -c 3 -# hello world 2 - -a 4 -b 5 -c 6 - - ----------------------------------------------------------------- input comments3.dkvp -cat ./reg_test/input/comments/comments3.dkvp -a=1,b=2,c=3 -a=4,b=5,c=6 -# hello world 3 - - ----------------------------------------------------------------- skip comments3.dkvp -mlr --skip-comments --idkvp --oxtab cat -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - -mlr --skip-comments --idkvp --oxtab cat ./reg_test/input/comments/comments3.dkvp -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - - ----------------------------------------------------------------- pass comments3.dkvp -mlr --pass-comments --idkvp --oxtab cat -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 -# hello world 3 - -mlr --pass-comments --idkvp --oxtab cat ./reg_test/input/comments/comments3.dkvp -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 -# hello world 3 - -mlr termcvt --lf2crlf - ----------------------------------------------------------------- input comments1-crlf.dkvp -cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.dkvp -# hello world 1 -a=1,b=2,c=3 -a=4,b=5,c=6 - - ----------------------------------------------------------------- skip comments1-crlf.dkvp -mlr --skip-comments --idkvp --oxtab cat -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - -mlr --skip-comments --idkvp --oxtab cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.dkvp -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - - ----------------------------------------------------------------- pass comments1-crlf.dkvp -mlr --pass-comments --idkvp --oxtab cat -# hello world 1 -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - -mlr --pass-comments --idkvp --oxtab cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.dkvp -# hello world 1 -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - - -================================================================ -SKIP/PASS COMMENTS DKVP WITH ALTERNATE PREFIX - - ----------------------------------------------------------------- input comments1-atat.dkvp -cat ./reg_test/input/comments/comments1-atat.dkvp -@@ hello world 1 -a=1,b=2,c=3 -a=4,b=5,c=6 - - ----------------------------------------------------------------- skip comments1-atat.dkvp -mlr --skip-comments-with @@ --idkvp --oxtab cat -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - -mlr --skip-comments-with @@ --idkvp --oxtab cat ./reg_test/input/comments/comments1-atat.dkvp -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - - ----------------------------------------------------------------- pass comments1-atat.dkvp -mlr --pass-comments-with @@ --idkvp --oxtab cat -@@ hello world 1 -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - -mlr --pass-comments-with @@ --idkvp --oxtab cat ./reg_test/input/comments/comments1-atat.dkvp -@@ hello world 1 -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - - ----------------------------------------------------------------- input comments2-atat.dkvp -cat ./reg_test/input/comments/comments2-atat.dkvp -a=1,b=2,c=3 -@@ hello world 2 -a=4,b=5,c=6 - - ----------------------------------------------------------------- skip comments2-atat.dkvp -mlr --skip-comments-with @@ --idkvp --oxtab cat -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - -mlr --skip-comments-with @@ --idkvp --oxtab cat ./reg_test/input/comments/comments2-atat.dkvp -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - - ----------------------------------------------------------------- pass comments2-atat.dkvp -mlr --pass-comments-with @@ --idkvp --oxtab cat -a 1 -b 2 -c 3 -@@ hello world 2 - -a 4 -b 5 -c 6 - -mlr --pass-comments-with @@ --idkvp --oxtab cat ./reg_test/input/comments/comments2-atat.dkvp -a 1 -b 2 -c 3 -@@ hello world 2 - -a 4 -b 5 -c 6 - - ----------------------------------------------------------------- input comments3-atat.dkvp -cat ./reg_test/input/comments/comments3-atat.dkvp -a=1,b=2,c=3 -a=4,b=5,c=6 -@@ hello world 3 - - ----------------------------------------------------------------- skip comments3-atat.dkvp -mlr --skip-comments-with @@ --idkvp --oxtab cat -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - -mlr --skip-comments-with @@ --idkvp --oxtab cat ./reg_test/input/comments/comments3-atat.dkvp -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 - - ----------------------------------------------------------------- pass comments3-atat.dkvp -mlr --pass-comments-with @@ --idkvp --oxtab cat -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 -@@ hello world 3 - -mlr --pass-comments-with @@ --idkvp --oxtab cat ./reg_test/input/comments/comments3-atat.dkvp -a 1 -b 2 -c 3 - -a 4 -b 5 -c 6 -@@ hello world 3 - - -================================================================ -SKIP/PASS COMMENTS NIDX - - ----------------------------------------------------------------- input comments1.nidx -cat ./reg_test/input/comments/comments1.nidx -# hello world 1 -aX1 bX2 cX3 -aX4 bX5 cX6 - - ----------------------------------------------------------------- skip comments1.nidx -mlr --skip-comments --inidx --oxtab cat -1 aX1 -2 bX2 -3 cX3 - -1 aX4 -2 bX5 -3 cX6 - -mlr --skip-comments --inidx --oxtab cat ./reg_test/input/comments/comments1.nidx -1 aX1 -2 bX2 -3 cX3 - -1 aX4 -2 bX5 -3 cX6 - - ----------------------------------------------------------------- pass comments1.nidx -mlr --pass-comments --inidx --oxtab cat -# hello world 1 -1 aX1 -2 bX2 -3 cX3 - -1 aX4 -2 bX5 -3 cX6 - -mlr --pass-comments --inidx --oxtab cat ./reg_test/input/comments/comments1.nidx -# hello world 1 -1 aX1 -2 bX2 -3 cX3 - -1 aX4 -2 bX5 -3 cX6 - - ----------------------------------------------------------------- input comments2.nidx -cat ./reg_test/input/comments/comments2.nidx -aX1 bX2 cX3 -# hello world 2 -aX4 bX5 cX6 - - ----------------------------------------------------------------- skip comments2.nidx -mlr --skip-comments --inidx --oxtab cat -1 aX1 -2 bX2 -3 cX3 - -1 aX4 -2 bX5 -3 cX6 - -mlr --skip-comments --inidx --oxtab cat ./reg_test/input/comments/comments2.nidx -1 aX1 -2 bX2 -3 cX3 - -1 aX4 -2 bX5 -3 cX6 - - ----------------------------------------------------------------- pass comments2.nidx -mlr --pass-comments --inidx --oxtab cat -1 aX1 -2 bX2 -3 cX3 -# hello world 2 - -1 aX4 -2 bX5 -3 cX6 - -mlr --pass-comments --inidx --oxtab cat ./reg_test/input/comments/comments2.nidx -1 aX1 -2 bX2 -3 cX3 -# hello world 2 - -1 aX4 -2 bX5 -3 cX6 - - ----------------------------------------------------------------- input comments3.nidx -cat ./reg_test/input/comments/comments3.nidx -aX1 bX2 cX3 -aX4 bX5 cX6 -# hello world 3 - - ----------------------------------------------------------------- skip comments3.nidx -mlr --skip-comments --inidx --oxtab cat -1 aX1 -2 bX2 -3 cX3 - -1 aX4 -2 bX5 -3 cX6 - -mlr --skip-comments --inidx --oxtab cat ./reg_test/input/comments/comments3.nidx -1 aX1 -2 bX2 -3 cX3 - -1 aX4 -2 bX5 -3 cX6 - - ----------------------------------------------------------------- pass comments3.nidx -mlr --pass-comments --inidx --oxtab cat -1 aX1 -2 bX2 -3 cX3 - -1 aX4 -2 bX5 -3 cX6 -# hello world 3 - -mlr --pass-comments --inidx --oxtab cat ./reg_test/input/comments/comments3.nidx -1 aX1 -2 bX2 -3 cX3 - -1 aX4 -2 bX5 -3 cX6 -# hello world 3 - -mlr termcvt --lf2crlf - ----------------------------------------------------------------- input comments1-crlf.nidx -cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.nidx -# hello world 1 -aX1 bX2 cX3 -aX4 bX5 cX6 - - ----------------------------------------------------------------- skip comments1-crlf.nidx -mlr --skip-comments --inidx --oxtab cat -1 aX1 -2 bX2 -3 cX3 - -1 aX4 -2 bX5 -3 cX6 - -mlr --skip-comments --inidx --oxtab cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.nidx -1 aX1 -2 bX2 -3 cX3 - -1 aX4 -2 bX5 -3 cX6 - - ----------------------------------------------------------------- pass comments1-crlf.nidx -mlr --pass-comments --inidx --oxtab cat -# hello world 1 -1 aX1 -2 bX2 -3 cX3 - -1 aX4 -2 bX5 -3 cX6 - -mlr --pass-comments --inidx --oxtab cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.nidx -# hello world 1 -1 aX1 -2 bX2 -3 cX3 - -1 aX4 -2 bX5 -3 cX6 - - -================================================================ -SKIP/PASS COMMENTS JSON - - ----------------------------------------------------------------- input comments1.json -cat ./reg_test/input/comments/comments1.json -# hello world 1 -{ "a":1, "b":2, "c":3 } -{ "a":4, "b":5, "c":6 } - - ----------------------------------------------------------------- skip comments1.json -mlr --skip-comments --ijson --odkvp cat -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --skip-comments --ijson --odkvp cat ./reg_test/input/comments/comments1.json -a=1,b=2,c=3 -a=4,b=5,c=6 - - ----------------------------------------------------------------- pass comments1.json -mlr --pass-comments --ijson --odkvp cat -# hello world 1 -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --pass-comments --ijson --odkvp cat ./reg_test/input/comments/comments1.json -# hello world 1 -a=1,b=2,c=3 -a=4,b=5,c=6 - - ----------------------------------------------------------------- input comments2.json -cat ./reg_test/input/comments/comments2.json -{ "a":1, "b":2, "c":3 } -# hello world 2 -{ "a":4, "b":5, "c":6 } - - ----------------------------------------------------------------- skip comments2.json -mlr --skip-comments --ijson --odkvp cat -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --skip-comments --ijson --odkvp cat ./reg_test/input/comments/comments2.json -a=1,b=2,c=3 -a=4,b=5,c=6 - - ----------------------------------------------------------------- pass comments2.json -mlr --pass-comments --ijson --odkvp cat -# hello world 2 -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --pass-comments --ijson --odkvp cat ./reg_test/input/comments/comments2.json -# hello world 2 -a=1,b=2,c=3 -a=4,b=5,c=6 - - ----------------------------------------------------------------- input comments3.json -cat ./reg_test/input/comments/comments3.json -{ "a":1, "b":2, "c":3 } -{ "a":4, "b":5, "c":6 } -# hello world 3 - - ----------------------------------------------------------------- skip comments3.json -mlr --skip-comments --ijson --odkvp cat -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --skip-comments --ijson --odkvp cat ./reg_test/input/comments/comments3.json -a=1,b=2,c=3 -a=4,b=5,c=6 - - ----------------------------------------------------------------- pass comments3.json -mlr --pass-comments --ijson --odkvp cat -# hello world 3 -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --pass-comments --ijson --odkvp cat ./reg_test/input/comments/comments3.json -# hello world 3 -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr termcvt --lf2crlf - ----------------------------------------------------------------- input comments1-crlf.json -cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.json -# hello world 1 -{ "a":1, "b":2, "c":3 } -{ "a":4, "b":5, "c":6 } - - ----------------------------------------------------------------- skip comments1-crlf.json -mlr --skip-comments --ijson --odkvp cat -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --skip-comments --ijson --odkvp cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.json -a=1,b=2,c=3 -a=4,b=5,c=6 - - ----------------------------------------------------------------- pass comments1-crlf.json -mlr --pass-comments --ijson --odkvp cat -# hello world 1 -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --pass-comments --ijson --odkvp cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.json -# hello world 1 -a=1,b=2,c=3 -a=4,b=5,c=6 - - -================================================================ -SKIP/PASS COMMENTS XTAB - - ----------------------------------------------------------------- input comments1.xtab -cat ./reg_test/input/comments/comments1.xtab -x 1 -#hello world3 -z 3 - -x 2 -#hello world4 -z 5 - - - ----------------------------------------------------------------- skip comments1.xtab -mlr --skip-comments --ixtab --odkvp cat -x=1,z=3 -x=2,z=5 - -mlr --skip-comments --ixtab --odkvp cat ./reg_test/input/comments/comments1.xtab -x=1,z=3 -x=2,z=5 - - ----------------------------------------------------------------- pass comments1.xtab -mlr --pass-comments --ixtab --odkvp cat -#hello world3 -x=1,z=3 -#hello world4 -x=2,z=5 - -mlr --pass-comments --ixtab --odkvp cat ./reg_test/input/comments/comments1.xtab -#hello world3 -x=1,z=3 -#hello world4 -x=2,z=5 - - ----------------------------------------------------------------- input comments2.xtab -cat ./reg_test/input/comments/comments2.xtab -#hello world1 - -#hello world2 -x 1 -#hello world3 -z 3 - -x 2 -#hello world4 -z 5 -#hello world5 - -#hello world6 - - ----------------------------------------------------------------- skip comments2.xtab -mlr --skip-comments --ixtab --odkvp cat -x=1,z=3 -x=2,z=5 - -mlr --skip-comments --ixtab --odkvp cat ./reg_test/input/comments/comments2.xtab -x=1,z=3 -x=2,z=5 - - ----------------------------------------------------------------- pass comments2.xtab -mlr --pass-comments --ixtab --odkvp cat -#hello world1 -#hello world2 -#hello world3 -x=1,z=3 -#hello world4 -#hello world5 -x=2,z=5 -#hello world6 - -mlr --pass-comments --ixtab --odkvp cat ./reg_test/input/comments/comments2.xtab -#hello world1 -#hello world2 -#hello world3 -x=1,z=3 -#hello world4 -#hello world5 -x=2,z=5 -#hello world6 - -mlr termcvt --lf2crlf - ----------------------------------------------------------------- input comments1-crlf.xtab -cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.xtab -x 1 -#hello world3 -z 3 - -x 2 -#hello world4 -z 5 - - - ----------------------------------------------------------------- skip comments1-crlf.xtab -mlr --skip-comments --ixtab --odkvp cat -x=1,z=3 -x=2,z=5 - -mlr --skip-comments --ixtab --odkvp cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.xtab -x=1,z=3 -x=2,z=5 - - ----------------------------------------------------------------- pass comments1-crlf.xtab -mlr --pass-comments --ixtab --odkvp cat -#hello world3 -x=1,z=3 -#hello world4 -x=2,z=5 - -mlr --pass-comments --ixtab --odkvp cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.xtab -#hello world3 -x=1,z=3 -#hello world4 -x=2,z=5 - - -================================================================ -SKIP/PASS COMMENTS CSVLITE - - ----------------------------------------------------------------- input comments1.csv -cat ./reg_test/input/comments/comments1.csv -# hello -a,b,c -1,2,3 -4,5,6 - - ----------------------------------------------------------------- skip comments1.csv -mlr --skip-comments --icsvlite --odkvp cat -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --skip-comments --icsvlite --odkvp cat ./reg_test/input/comments/comments1.csv -a=1,b=2,c=3 -a=4,b=5,c=6 - - ----------------------------------------------------------------- pass comments1.csv -mlr --pass-comments --icsvlite --odkvp cat -# hello -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --pass-comments --icsvlite --odkvp cat ./reg_test/input/comments/comments1.csv -# hello -a=1,b=2,c=3 -a=4,b=5,c=6 - - ----------------------------------------------------------------- input comments2.csv -cat ./reg_test/input/comments/comments2.csv -# hello -a,b,c -# hi -1,2,3 -# there -4,5,6 -# haha - - ----------------------------------------------------------------- skip comments2.csv -mlr --skip-comments --icsvlite --odkvp cat -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --skip-comments --icsvlite --odkvp cat ./reg_test/input/comments/comments2.csv -a=1,b=2,c=3 -a=4,b=5,c=6 - - ----------------------------------------------------------------- pass comments2.csv -mlr --pass-comments --icsvlite --odkvp cat -# hello -# hi -a=1,b=2,c=3 -# there -a=4,b=5,c=6 -# haha - -mlr --pass-comments --icsvlite --odkvp cat ./reg_test/input/comments/comments2.csv -# hello -# hi -a=1,b=2,c=3 -# there -a=4,b=5,c=6 -# haha - -mlr termcvt --lf2crlf - ----------------------------------------------------------------- input comments1-crlf.csv -cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.csv -# hello -a,b,c -1,2,3 -4,5,6 - - ----------------------------------------------------------------- skip comments1-crlf.csv -mlr --skip-comments --icsvlite --odkvp cat -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --skip-comments --icsvlite --odkvp cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.csv -a=1,b=2,c=3 -a=4,b=5,c=6 - - ----------------------------------------------------------------- pass comments1-crlf.csv -mlr --pass-comments --icsvlite --odkvp cat -# hello -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --pass-comments --icsvlite --odkvp cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.csv -# hello -a=1,b=2,c=3 -a=4,b=5,c=6 - - -================================================================ -SKIP/PASS COMMENTS CSV - - ----------------------------------------------------------------- input comments1.csv -cat ./reg_test/input/comments/comments1.csv -# hello -a,b,c -1,2,3 -4,5,6 - - ----------------------------------------------------------------- skip comments1.csv -mlr --skip-comments --icsv --odkvp cat -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --skip-comments --icsv --odkvp cat ./reg_test/input/comments/comments1.csv -a=1,b=2,c=3 -a=4,b=5,c=6 - - ----------------------------------------------------------------- pass comments1.csv -mlr --pass-comments --icsv --odkvp cat -# hello -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --pass-comments --icsv --odkvp cat ./reg_test/input/comments/comments1.csv -# hello -a=1,b=2,c=3 -a=4,b=5,c=6 - - ----------------------------------------------------------------- input comments2.csv -cat ./reg_test/input/comments/comments2.csv -# hello -a,b,c -# hi -1,2,3 -# there -4,5,6 -# haha - - ----------------------------------------------------------------- skip comments2.csv -mlr --skip-comments --icsv --odkvp cat -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --skip-comments --icsv --odkvp cat ./reg_test/input/comments/comments2.csv -a=1,b=2,c=3 -a=4,b=5,c=6 - - ----------------------------------------------------------------- pass comments2.csv -mlr --pass-comments --icsv --odkvp cat -# hello -# hi -a=1,b=2,c=3 -# there -a=4,b=5,c=6 -# haha - -mlr --pass-comments --icsv --odkvp cat ./reg_test/input/comments/comments2.csv -# hello -# hi -a=1,b=2,c=3 -# there -a=4,b=5,c=6 -# haha - -mlr termcvt --lf2crlf - ----------------------------------------------------------------- input comments1-crlf.csv -cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.csv -# hello -a,b,c -1,2,3 -4,5,6 - - ----------------------------------------------------------------- skip comments1-crlf.csv -mlr --skip-comments --icsv --odkvp cat -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --skip-comments --icsv --odkvp cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.csv -a=1,b=2,c=3 -a=4,b=5,c=6 - - ----------------------------------------------------------------- pass comments1-crlf.csv -mlr --pass-comments --icsv --odkvp cat -# hello -a=1,b=2,c=3 -a=4,b=5,c=6 - -mlr --pass-comments --icsv --odkvp cat /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.csv -# hello -a=1,b=2,c=3 -a=4,b=5,c=6 - - -================================================================ -INT64 I/O - -mlr --oxtab put $c=$a;$d=$b;$e=hexfmt($a);$f=hexfmt($b) ./reg_test/input/int64io.dkvp -a 0x1 -b 1 -c 1 -d 1 -e 0x1 -f 0x1 - -a 0x7ffffffffffffffe -b 9223372036854775806 -c 9223372036854775806 -d 9223372036854775806 -e 0x7ffffffffffffffe -f 0x7ffffffffffffffe - -a 0x7fffffffffffffff -b 9223372036854775807 -c 9223372036854775807 -d 9223372036854775807 -e 0x7fffffffffffffff -f 0x7fffffffffffffff - -a 0x8000000000000000 -b -9223372036854775808 -c -9223372036854775808 -d -9223372036854775808 -e 0x8000000000000000 -f 0x8000000000000000 - -a 0xffffffffffffffff -b -1 -c -1 -d -1 -e 0xffffffffffffffff -f 0xffffffffffffffff - -mlr --oxtab --ofmt %.8g put $p0=$p+0;$p1=$p+1;$p2=$p+2;$p3=$p+3 ./reg_test/input/int64arith.dkvp -p 0x7ffffffffffff9ff -n 0x8000000000000000 -p0 9223372036854774271 -p1 9223372036854774272 -p2 9223372036854774273 -p3 9223372036854774274 - -p 0x7ffffffffffffa00 -n 0x8000000000000001 -p0 9223372036854774272 -p1 9223372036854774273 -p2 9223372036854774274 -p3 9223372036854774275 - -p 0x7ffffffffffffbff -n 0x8000000000000200 -p0 9223372036854774783 -p1 9223372036854774784 -p2 9223372036854774785 -p3 9223372036854774786 - -p 0x7ffffffffffffc00 -n 0x8000000000000400 -p0 9223372036854774784 -p1 9223372036854774785 -p2 9223372036854774786 -p3 9223372036854774787 - -p 0x7ffffffffffffe00 -n 0x8000000000000401 -p0 9223372036854775296 -p1 9223372036854775297 -p2 9223372036854775298 -p3 9223372036854775299 - -p 0x7ffffffffffffffe -n 0x8000000000000600 -p0 9223372036854775806 -p1 9223372036854775807 -p2 9.223372e+18 -p3 9.223372e+18 - -p 0x7fffffffffffffff -n 0x8000000000000601 -p0 9223372036854775807 -p1 9.223372e+18 -p2 9.223372e+18 -p3 9.223372e+18 - -mlr --oxtab --ofmt %.8g put $p0=$p-0;$p1=$p-1;$p2=$p-2;$p3=$p-3 ./reg_test/input/int64arith.dkvp -p 0x7ffffffffffff9ff -n 0x8000000000000000 -p0 9223372036854774271 -p1 9223372036854774270 -p2 9223372036854774269 -p3 9223372036854774268 - -p 0x7ffffffffffffa00 -n 0x8000000000000001 -p0 9223372036854774272 -p1 9223372036854774271 -p2 9223372036854774270 -p3 9223372036854774269 - -p 0x7ffffffffffffbff -n 0x8000000000000200 -p0 9223372036854774783 -p1 9223372036854774782 -p2 9223372036854774781 -p3 9223372036854774780 - -p 0x7ffffffffffffc00 -n 0x8000000000000400 -p0 9223372036854774784 -p1 9223372036854774783 -p2 9223372036854774782 -p3 9223372036854774781 - -p 0x7ffffffffffffe00 -n 0x8000000000000401 -p0 9223372036854775296 -p1 9223372036854775295 -p2 9223372036854775294 -p3 9223372036854775293 - -p 0x7ffffffffffffffe -n 0x8000000000000600 -p0 9223372036854775806 -p1 9223372036854775805 -p2 9223372036854775804 -p3 9223372036854775803 - -p 0x7fffffffffffffff -n 0x8000000000000601 -p0 9223372036854775807 -p1 9223372036854775806 -p2 9223372036854775805 -p3 9223372036854775804 - -mlr --oxtab --ofmt %.8g put $p0=$p*0;$p1=$p*1;$p2=$p*2;$p3=$p*3 ./reg_test/input/int64arith.dkvp -p 0x7ffffffffffff9ff -n 0x8000000000000000 -p0 0 -p1 9223372036854774271 -p2 1.8446744e+19 -p3 2.7670116e+19 - -p 0x7ffffffffffffa00 -n 0x8000000000000001 -p0 0 -p1 9223372036854774272 -p2 1.8446744e+19 -p3 2.7670116e+19 - -p 0x7ffffffffffffbff -n 0x8000000000000200 -p0 0 -p1 9223372036854774783 -p2 1.8446744e+19 -p3 2.7670116e+19 - -p 0x7ffffffffffffc00 -n 0x8000000000000400 -p0 0 -p1 9223372036854774784 -p2 1.8446744e+19 -p3 2.7670116e+19 - -p 0x7ffffffffffffe00 -n 0x8000000000000401 -p0 0 -p1 9.223372e+18 -p2 1.8446744e+19 -p3 2.7670116e+19 - -p 0x7ffffffffffffffe -n 0x8000000000000600 -p0 0 -p1 9.223372e+18 -p2 1.8446744e+19 -p3 2.7670116e+19 - -p 0x7fffffffffffffff -n 0x8000000000000601 -p0 0 -p1 9.223372e+18 -p2 1.8446744e+19 -p3 2.7670116e+19 - -mlr --oxtab --ofmt %.8g put $n0=$n+0;$n1=$n+1;$n2=$n+2;$n3=$n+3 ./reg_test/input/int64arith.dkvp -p 0x7ffffffffffff9ff -n 0x8000000000000000 -n0 -9223372036854775808 -n1 -9223372036854775807 -n2 -9223372036854775806 -n3 -9223372036854775805 - -p 0x7ffffffffffffa00 -n 0x8000000000000001 -n0 -9223372036854775807 -n1 -9223372036854775806 -n2 -9223372036854775805 -n3 -9223372036854775804 - -p 0x7ffffffffffffbff -n 0x8000000000000200 -n0 -9223372036854775296 -n1 -9223372036854775295 -n2 -9223372036854775294 -n3 -9223372036854775293 - -p 0x7ffffffffffffc00 -n 0x8000000000000400 -n0 -9223372036854774784 -n1 -9223372036854774783 -n2 -9223372036854774782 -n3 -9223372036854774781 - -p 0x7ffffffffffffe00 -n 0x8000000000000401 -n0 -9223372036854774783 -n1 -9223372036854774782 -n2 -9223372036854774781 -n3 -9223372036854774780 - -p 0x7ffffffffffffffe -n 0x8000000000000600 -n0 -9223372036854774272 -n1 -9223372036854774271 -n2 -9223372036854774270 -n3 -9223372036854774269 - -p 0x7fffffffffffffff -n 0x8000000000000601 -n0 -9223372036854774271 -n1 -9223372036854774270 -n2 -9223372036854774269 -n3 -9223372036854774268 - -mlr --oxtab --ofmt %.8g put $n0=$n-0;$n1=$n-1;$n2=$n-2;$n3=$n-3 ./reg_test/input/int64arith.dkvp -p 0x7ffffffffffff9ff -n 0x8000000000000000 -n0 -9223372036854775808 -n1 -9.223372e+18 -n2 -9.223372e+18 -n3 -9.223372e+18 - -p 0x7ffffffffffffa00 -n 0x8000000000000001 -n0 -9223372036854775807 -n1 -9223372036854775808 -n2 -9.223372e+18 -n3 -9.223372e+18 - -p 0x7ffffffffffffbff -n 0x8000000000000200 -n0 -9223372036854775296 -n1 -9223372036854775297 -n2 -9223372036854775298 -n3 -9223372036854775299 - -p 0x7ffffffffffffc00 -n 0x8000000000000400 -n0 -9223372036854774784 -n1 -9223372036854774785 -n2 -9223372036854774786 -n3 -9223372036854774787 - -p 0x7ffffffffffffe00 -n 0x8000000000000401 -n0 -9223372036854774783 -n1 -9223372036854774784 -n2 -9223372036854774785 -n3 -9223372036854774786 - -p 0x7ffffffffffffffe -n 0x8000000000000600 -n0 -9223372036854774272 -n1 -9223372036854774273 -n2 -9223372036854774274 -n3 -9223372036854774275 - -p 0x7fffffffffffffff -n 0x8000000000000601 -n0 -9223372036854774271 -n1 -9223372036854774272 -n2 -9223372036854774273 -n3 -9223372036854774274 - -mlr --oxtab --ofmt %.8g put $n0=$n*0;$n1=$n*1;$n2=$n*2;$n3=$n*3 ./reg_test/input/int64arith.dkvp -p 0x7ffffffffffff9ff -n 0x8000000000000000 -n0 0 -n1 -9.223372e+18 -n2 -1.8446744e+19 -n3 -2.7670116e+19 - -p 0x7ffffffffffffa00 -n 0x8000000000000001 -n0 0 -n1 -9.223372e+18 -n2 -1.8446744e+19 -n3 -2.7670116e+19 - -p 0x7ffffffffffffbff -n 0x8000000000000200 -n0 0 -n1 -9.223372e+18 -n2 -1.8446744e+19 -n3 -2.7670116e+19 - -p 0x7ffffffffffffc00 -n 0x8000000000000400 -n0 0 -n1 -9223372036854774784 -n2 -1.8446744e+19 -n3 -2.7670116e+19 - -p 0x7ffffffffffffe00 -n 0x8000000000000401 -n0 0 -n1 -9223372036854774783 -n2 -1.8446744e+19 -n3 -2.7670116e+19 - -p 0x7ffffffffffffffe -n 0x8000000000000600 -n0 0 -n1 -9223372036854774272 -n2 -1.8446744e+19 -n3 -2.7670116e+19 - -p 0x7fffffffffffffff -n 0x8000000000000601 -n0 0 -n1 -9223372036854774271 -n2 -1.8446744e+19 -n3 -2.7670116e+19 - - -================================================================ -COMPRESSED INPUT - -mlr --csv --prepipe cat cat ./reg_test/input/rfc-csv/simple.csv-crlf -a,b,c -1,x,3 -4,5,6 -x,"y""yy",z - -mlr --dkvp --prepipe cat cat ./reg_test/input/abixy -a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 -a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 -a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 -a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 -a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 -a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 -a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 -a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 -a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 -a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 - -mlr --csv --prepipe cat cat -a,b,c -1,x,3 -4,5,6 -x,"y""yy",z - -mlr --dkvp --prepipe cat cat -a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 -a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 -a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 -a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 -a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 -a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 -a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 -a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 -a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 -a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 - - -================================================================ -STDIN - -mlr --csv cat -a,b,c -1,x,3 -4,5,6 -x,"y""yy",z - - -================================================================ -RFC-CSV - -mlr --csv cat ./reg_test/input/rfc-csv/simple.csv-crlf -a,b,c -1,x,3 -4,5,6 -x,"y""yy",z - -mlr --csv cat ./reg_test/input/rfc-csv/simple-truncated.csv -a,b,c -1,x,3 -4,5,6 - -mlr --csv cat ./reg_test/input/rfc-csv/narrow.csv -a -1 -2 -3 -4 - -mlr --csv cat ./reg_test/input/rfc-csv/narrow-truncated.csv -a -1 -2 -3 -4 - -mlr --csv cat ./reg_test/input/rfc-csv/quoted-comma.csv -a,b,c -1,"x,3",y -4,5,6 - -mlr --csv cat ./reg_test/input/rfc-csv/quoted-comma-truncated.csv -a,b,c -1,"x,3",y -4,5,6 - -mlr --csv cat ./reg_test/input/rfc-csv/quoted-crlf.csv -a,b,c -1,"x -3",y -4,5,6 - -mlr --csv cat ./reg_test/input/rfc-csv/quoted-crlf-truncated.csv -a,b,c -1,"x -3",y -4,5,6 - -mlr --csv cat ./reg_test/input/rfc-csv/simple-truncated.csv ./reg_test/input/rfc-csv/simple.csv-crlf -a,b,c -1,x,3 -4,5,6 -1,x,3 -4,5,6 -x,"y""yy",z - -mlr --csv --ifs semicolon --ofs pipe --irs lf --ors lflf cut -x -f b ./reg_test/input/rfc-csv/modify-defaults.csv -a|c - -1|3 - -4|6 - - -mlr --csv --rs lf --quote-original cut -o -f c,b,a ./reg_test/input/quote-original.csv -c,b,a -3,2,1 -6,"5",4 -"9",8,"7" - -mlr --icsv --oxtab cat ./reg_test/input/comma-at-eof.csv -a 1 -b 2 -c 3 - -a 4 -b 5 -c - -mlr --csv --quote-all cat ./reg_test/input/rfc-csv/simple.csv-crlf -"a","b","c" -"1","x","3" -"4","5","6" -"x","y""yy","z" - -mlr --csv --quote-original cat ./reg_test/input/rfc-csv/simple.csv-crlf -a,b,c -1,x,3 -4,5,6 -"x","y""yy","z" - -mlr --itsv --rs lf --oxtab cat ./reg_test/input/simple.tsv -a pan -b pan -i 1 -x 2 -y 0.989945 - -a eks -b pan -i 2 -x 1 -y 0.775159 - -a wye -b wye -i 3 -x 1 -y 0.761642 - -a eks -b wye -i 4 -x 5 -y 0.322934 - -a wye -b pan -i 5 -x 5 -y 0.448283 - -mlr --iusv --oxtab cat ./reg_test/input/example.usv -a d -b e -c f - -a g -b h -c i - - -================================================================ -RAGGED NON-RFC CSV - -mlr --icsv --oxtab --ragged cat ./reg_test/input/ragged.csv -a 1 -b 2 -c 3 - -a 4 -b 5 -c - -a 6 -b 7 -c 8 -4 9 - -mlr --icsvlite --oxtab --ragged cat ./reg_test/input/ragged.csv -a 1 -b 2 -c 3 - -a 4 -b 5 -c - -a 6 -b 7 -c 8 -4 9 - - -================================================================ -MARKDOWN OUTPUT - -mlr --itsv --rs lf --omd cat ./reg_test/input/simple.tsv -| a | b | i | x | y | -| --- | --- | --- | --- | --- | -| pan | pan | 1 | 2 | 0.989945 | -| eks | pan | 2 | 1 | 0.775159 | -| wye | wye | 3 | 1 | 0.761642 | -| eks | wye | 4 | 5 | 0.322934 | -| wye | pan | 5 | 5 | 0.448283 | - - -================================================================ -CSV/RS ENVIRONMENT DEFAULTS - -mlr --csv cut -f a ./reg_test/input/rfc-csv/simple.csv-crlf -a -1 -4 -x - -mlr --csv --rs crlf cut -f a ./reg_test/input/rfc-csv/simple.csv-crlf -a -1 -4 -x - -mlr --csv --rs lf cut -f a ./reg_test/input/rfc-csv/simple.csv-crlf -mlr: unmatched double quote at line 3. -a -1 -4 - - -================================================================ -MULTI-CHARACTER IRS/IFS/IPS FOR DKVP - -mlr --oxtab --idkvp --irs lf --ifs , --ips = cut -o -f x,a,i ./reg_test/input/multi-sep.dkvp-crlf -x :0.641593543645736508/ -a :wye/ -i :0/ - -x :0.827614412562742041/ -a :eks/ -i :1/ - -x :0.923068348748175560/ -a :zee/ -i :2/ - -x :0.000047786161325772/ -a :zee/ -i :3/ - -x :0.676537984365847889/ -a :zee/ -i :4/ - -mlr --oxtab --idkvp --irs lf --ifs /, --ips =: cut -o -f x,a,i ./reg_test/input/multi-sep.dkvp-crlf -x 0.641593543645736508 -a wye -i 0 - -x 0.827614412562742041 -a eks -i 1 - -x 0.923068348748175560 -a zee -i 2 - -x 0.000047786161325772 -a zee -i 3 - -x 0.676537984365847889 -a zee -i 4 - -mlr --oxtab --idkvp --irs crlf --ifs , --ips = cut -o -f x,a,i ./reg_test/input/multi-sep.dkvp-crlf -x :0.641593543645736508/ -a :wye/ -i :0/ - -x :0.827614412562742041/ -a :eks/ -i :1/ - -x :0.923068348748175560/ -a :zee/ -i :2/ - -x :0.000047786161325772/ -a :zee/ -i :3/ - -x :0.676537984365847889/ -a :zee/ -i :4/ - -mlr --oxtab --idkvp --irs crlf --ifs /, --ips =: cut -o -f x,a,i ./reg_test/input/multi-sep.dkvp-crlf -x 0.641593543645736508 -a wye -i 0 - -x 0.827614412562742041 -a eks -i 1 - -x 0.923068348748175560 -a zee -i 2 - -x 0.000047786161325772 -a zee -i 3 - -x 0.676537984365847889 -a zee -i 4 - - -================================================================ -MULTI-CHARACTER IRS/IFS FOR NIDX - -mlr --oxtab --inidx --irs lf --ifs , cut -o -f 4,1,3 ./reg_test/input/multi-sep.dkvp-crlf -4 x=:0.641593543645736508/ -1 a=:wye/ -3 i=:0/ - -4 x=:0.827614412562742041/ -1 a=:eks/ -3 i=:1/ - -4 x=:0.923068348748175560/ -1 a=:zee/ -3 i=:2/ - -4 x=:0.000047786161325772/ -1 a=:zee/ -3 i=:3/ - -4 x=:0.676537984365847889/ -1 a=:zee/ -3 i=:4/ - -mlr --oxtab --inidx --irs lf --ifs /, cut -o -f 4,1,3 ./reg_test/input/multi-sep.dkvp-crlf -4 x=:0.641593543645736508 -1 a=:wye -3 i=:0 - -4 x=:0.827614412562742041 -1 a=:eks -3 i=:1 - -4 x=:0.923068348748175560 -1 a=:zee -3 i=:2 - -4 x=:0.000047786161325772 -1 a=:zee -3 i=:3 - -4 x=:0.676537984365847889 -1 a=:zee -3 i=:4 - -mlr --oxtab --inidx --irs crlf --ifs , cut -o -f 4,1,3 ./reg_test/input/multi-sep.dkvp-crlf -4 x=:0.641593543645736508/ -1 a=:wye/ -3 i=:0/ - -4 x=:0.827614412562742041/ -1 a=:eks/ -3 i=:1/ - -4 x=:0.923068348748175560/ -1 a=:zee/ -3 i=:2/ - -4 x=:0.000047786161325772/ -1 a=:zee/ -3 i=:3/ - -4 x=:0.676537984365847889/ -1 a=:zee/ -3 i=:4/ - -mlr --oxtab --inidx --irs crlf --ifs /, cut -o -f 4,1,3 ./reg_test/input/multi-sep.dkvp-crlf -4 x=:0.641593543645736508 -1 a=:wye -3 i=:0 - -4 x=:0.827614412562742041 -1 a=:eks -3 i=:1 - -4 x=:0.923068348748175560 -1 a=:zee -3 i=:2 - -4 x=:0.000047786161325772 -1 a=:zee -3 i=:3 - -4 x=:0.676537984365847889 -1 a=:zee -3 i=:4 - - -================================================================ -MULTI-CHARACTER IRS/IFS FOR CSVLITE - -mlr --oxtab --icsvlite --irs lf --ifs , cut -o -f x/,a/,i/ ./reg_test/input/multi-sep.csv-crlf -x/ 0.641593543645736508/ -a/ wye/ -i/ 0/ - -x/ 0.827614412562742041/ -a/ eks/ -i/ 1/ - -x/ 0.923068348748175560/ -a/ zee/ -i/ 2/ - -x/ 0.000047786161325772/ -a/ zee/ -i/ 3/ - -x/ 0.676537984365847889/ -a/ zee/ -i/ 4/ - -mlr --oxtab --icsvlite --irs lf --ifs /, cut -o -f x,a,i ./reg_test/input/multi-sep.csv-crlf -x 0.641593543645736508 -a wye -i 0 - -x 0.827614412562742041 -a eks -i 1 - -x 0.923068348748175560 -a zee -i 2 - -x 0.000047786161325772 -a zee -i 3 - -x 0.676537984365847889 -a zee -i 4 - -mlr --oxtab --icsvlite --irs crlf --ifs , cut -o -f x/,a/,i/ ./reg_test/input/multi-sep.csv-crlf -x/ 0.641593543645736508/ -a/ wye/ -i/ 0/ - -x/ 0.827614412562742041/ -a/ eks/ -i/ 1/ - -x/ 0.923068348748175560/ -a/ zee/ -i/ 2/ - -x/ 0.000047786161325772/ -a/ zee/ -i/ 3/ - -x/ 0.676537984365847889/ -a/ zee/ -i/ 4/ - -mlr --oxtab --icsvlite --irs crlf --ifs /, cut -o -f x,a,i ./reg_test/input/multi-sep.csv-crlf -x 0.641593543645736508 -a wye -i 0 - -x 0.827614412562742041 -a eks -i 1 - -x 0.923068348748175560 -a zee -i 2 - -x 0.000047786161325772 -a zee -i 3 - -x 0.676537984365847889 -a zee -i 4 - - -================================================================ -MULTI-CHARACTER SEPARATORS FOR XTAB - -mlr --xtab --ifs crlf --ofs Z cut -x -f b ./reg_test/input/truncated.xtab-crlf -a 1Zc 3ZZd 4Ze 5Z -mlr --xtab --ips . --ops @ cut -x -f b ./reg_test/input/dots.xtab -a@1 -c@345 - -defg@6 -hi@@@78 - -mlr --xtab --ips : --ops @@@@ put $sum=int($a+$b) ./reg_test/input/multi-ips.dkvp -a@@@@1 -b@@@@2 -sum@@@@3 - - -================================================================ -EMBEDDED IPS FOR XTAB - -mlr --xtab cat ./reg_test/input/embedded-ips.xtab -a 1 -b 2 -c 3 4 5 - - -================================================================ -MULTI-CHARACTER IRS FOR PPRINT - -mlr --pprint --irs crlf --ifs / --ofs @ cut -x -f b ./reg_test/input/dots.pprint-crlf -a@@@i@@x@@@@@@@@@@@@@@@@@@@y -pan@1@@0.3467901443380824@@0.7268028627434533 -eks@2@@0.7586799647899636@@0.5221511083334797 -wye@3@@0.20460330576630303@0.33831852551664776 -eks@4@@0.38139939387114097@0.13418874328430463 -wye@5@@0.5732889198020006@@0.8636244699032729 -zee@6@@0.5271261600918548@@0.49322128674835697 -eks@7@@0.6117840605678454@@0.1878849191181694 -zee@8@@0.5985540091064224@@0.976181385699006 -hat@9@@0.03144187646093577@0.7495507603507059 -pan@10@0.5026260055412137@@0.9526183602969864 - - -================================================================ -BARRED PPRINT - -mlr --opprint --barred cat ./reg_test/input/abixy -+-----+-----+----+---------------------+---------------------+ -| a | b | i | x | y | -+-----+-----+----+---------------------+---------------------+ -| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | -| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | -| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | -| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | -| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | -| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | -| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | -| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | -| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | -| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | -+-----+-----+----+---------------------+---------------------+ - -mlr --opprint --barred --right cat ./reg_test/input/abixy -+-----+-----+----+---------------------+---------------------+ -| a | b | i | x | y | -+-----+-----+----+---------------------+---------------------+ -| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | -| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | -| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | -| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | -| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | -| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | -| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | -| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | -| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | -| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | -+-----+-----+----+---------------------+---------------------+ - -mlr --opprint --barred cat ./reg_test/input/abixy-het -+-----+-----+---+--------------------+--------------------+ -| a | b | i | x | y | -+-----+-----+---+--------------------+--------------------+ -| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | -| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | -+-----+-----+---+--------------------+--------------------+ - -+-----+-----+---+---------------------+---------------------+ -| aaa | b | i | x | y | -+-----+-----+---+---------------------+---------------------+ -| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | -+-----+-----+---+---------------------+---------------------+ - -+-----+-----+---+---------------------+---------------------+ -| a | bbb | i | x | y | -+-----+-----+---+---------------------+---------------------+ -| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | -+-----+-----+---+---------------------+---------------------+ - -+-----+-----+---+--------------------+--------------------+ -| a | b | i | xxx | y | -+-----+-----+---+--------------------+--------------------+ -| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | -+-----+-----+---+--------------------+--------------------+ - -+-----+-----+---+--------------------+---------------------+ -| a | b | i | x | y | -+-----+-----+---+--------------------+---------------------+ -| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | -+-----+-----+---+--------------------+---------------------+ - -+-----+-----+-----+--------------------+--------------------+ -| a | b | iii | x | y | -+-----+-----+-----+--------------------+--------------------+ -| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | -+-----+-----+-----+--------------------+--------------------+ - -+-----+-----+---+--------------------+-------------------+ -| a | b | i | x | yyy | -+-----+-----+---+--------------------+-------------------+ -| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | -+-----+-----+---+--------------------+-------------------+ - -+-----+-----+---+---------------------+--------------------+ -| aaa | bbb | i | x | y | -+-----+-----+---+---------------------+--------------------+ -| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | -+-----+-----+---+---------------------+--------------------+ - -+-----+-----+----+--------------------+--------------------+ -| a | b | i | x | y | -+-----+-----+----+--------------------+--------------------+ -| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | -+-----+-----+----+--------------------+--------------------+ - -mlr --opprint --barred --right cat ./reg_test/input/abixy-het -+-----+-----+---+--------------------+--------------------+ -| a | b | i | x | y | -+-----+-----+---+--------------------+--------------------+ -| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | -| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | -+-----+-----+---+--------------------+--------------------+ - -+-----+-----+---+---------------------+---------------------+ -| aaa | b | i | x | y | -+-----+-----+---+---------------------+---------------------+ -| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | -+-----+-----+---+---------------------+---------------------+ - -+-----+-----+---+---------------------+---------------------+ -| a | bbb | i | x | y | -+-----+-----+---+---------------------+---------------------+ -| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | -+-----+-----+---+---------------------+---------------------+ - -+-----+-----+---+--------------------+--------------------+ -| a | b | i | xxx | y | -+-----+-----+---+--------------------+--------------------+ -| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | -+-----+-----+---+--------------------+--------------------+ - -+-----+-----+---+--------------------+---------------------+ -| a | b | i | x | y | -+-----+-----+---+--------------------+---------------------+ -| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | -+-----+-----+---+--------------------+---------------------+ - -+-----+-----+-----+--------------------+--------------------+ -| a | b | iii | x | y | -+-----+-----+-----+--------------------+--------------------+ -| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | -+-----+-----+-----+--------------------+--------------------+ - -+-----+-----+---+--------------------+-------------------+ -| a | b | i | x | yyy | -+-----+-----+---+--------------------+-------------------+ -| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | -+-----+-----+---+--------------------+-------------------+ - -+-----+-----+---+---------------------+--------------------+ -| aaa | bbb | i | x | y | -+-----+-----+---+---------------------+--------------------+ -| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | -+-----+-----+---+---------------------+--------------------+ - -+-----+-----+----+--------------------+--------------------+ -| a | b | i | x | y | -+-----+-----+----+--------------------+--------------------+ -| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | -+-----+-----+----+--------------------+--------------------+ - - -================================================================ -MULTI-CHARACTER IXS SPECIFIERS - -mlr --oxtab --idkvp --irs lf --ifs , --ips = cut -o -f x,a,i ./reg_test/input/multi-sep.dkvp-crlf -x :0.641593543645736508/ -a :wye/ -i :0/ - -x :0.827614412562742041/ -a :eks/ -i :1/ - -x :0.923068348748175560/ -a :zee/ -i :2/ - -x :0.000047786161325772/ -a :zee/ -i :3/ - -x :0.676537984365847889/ -a :zee/ -i :4/ - -mlr --oxtab --idkvp --irs lf --ifs /, --ips =: cut -o -f x,a,i ./reg_test/input/multi-sep.dkvp-crlf -x 0.641593543645736508 -a wye -i 0 - -x 0.827614412562742041 -a eks -i 1 - -x 0.923068348748175560 -a zee -i 2 - -x 0.000047786161325772 -a zee -i 3 - -x 0.676537984365847889 -a zee -i 4 - - -================================================================ -JSON I/O - -mlr --ijson --opprint cat ./reg_test/input/small-non-nested.json -a b i x y -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --ijson --opprint cat ./reg_test/input/small-non-nested-wrapped.json -a b i x y -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --ijson --oxtab cat ./reg_test/input/small-nested.json -z:pan:1 0.726803 -z:pan:0 0.952618 -z:eks:0 0.134189 -z:eks:1 0.187885 -z:wye:1 0.863624 -z:zee:0 0.976181 -z:hat:1 0.749551 - -mlr --ojson cat ./reg_test/input/json-output-options.dkvp -{ "a": 1, "b": "x", "c": 3 } -{ "d": 4 } -{ "1": 5, "f": 6 } - -mlr --ojson --jvstack cat ./reg_test/input/json-output-options.dkvp -{ - "a": 1, - "b": "x", - "c": 3 -} -{ - "d": 4 -} -{ - "1": 5, - "f": 6 -} - -mlr --ojson --jlistwrap cat ./reg_test/input/json-output-options.dkvp -[ -{ "a": 1, "b": "x", "c": 3 } -,{ "d": 4 } -,{ "1": 5, "f": 6 } -] - -mlr --ojson --jvstack --jlistwrap cat ./reg_test/input/json-output-options.dkvp -[ -{ - "a": 1, - "b": "x", - "c": 3 -} -,{ - "d": 4 -} -,{ - "1": 5, - "f": 6 -} -] - -mlr --ojson --jquoteall cat ./reg_test/input/json-output-options.dkvp -{ "a": "1", "b": "x", "c": "3" } -{ "d": "4" } -{ "1": "5", "f": "6" } - -mlr --ojson --jvstack --jquoteall cat ./reg_test/input/json-output-options.dkvp -{ - "a": "1", - "b": "x", - "c": "3" -} -{ - "d": "4" -} -{ - "1": "5", - "f": "6" -} - -mlr --ojson --jlistwrap --jquoteall cat ./reg_test/input/json-output-options.dkvp -[ -{ "a": "1", "b": "x", "c": "3" } -,{ "d": "4" } -,{ "1": "5", "f": "6" } -] - -mlr --ojson --jvstack --jlistwrap --jquoteall cat ./reg_test/input/json-output-options.dkvp -[ -{ - "a": "1", - "b": "x", - "c": "3" -} -,{ - "d": "4" -} -,{ - "1": "5", - "f": "6" -} -] - -mlr --ojson --jvquoteall cat ./reg_test/input/json-output-options.dkvp -{ "a": "1", "b": "x", "c": "3" } -{ "d": "4" } -{ "1": "5", "f": "6" } - -mlr --ojson --jvstack --jvquoteall cat ./reg_test/input/json-output-options.dkvp -{ - "a": "1", - "b": "x", - "c": "3" -} -{ - "d": "4" -} -{ - "1": "5", - "f": "6" -} - -mlr --ojson --jlistwrap --jvquoteall cat ./reg_test/input/json-output-options.dkvp -[ -{ "a": "1", "b": "x", "c": "3" } -,{ "d": "4" } -,{ "1": "5", "f": "6" } -] - -mlr --ojson --jvstack --jlistwrap --jvquoteall cat ./reg_test/input/json-output-options.dkvp -[ -{ - "a": "1", - "b": "x", - "c": "3" -} -,{ - "d": "4" -} -,{ - "1": "5", - "f": "6" -} -] - -mlr --ojson --jknquoteint cat ./reg_test/input/json-output-options.dkvp -{ "a": 1, "b": "x", "c": 3 } -{ "d": 4 } -{ "1": 5, "f": 6 } - -mlr --ojson --jvstack --jknquoteint cat ./reg_test/input/json-output-options.dkvp -{ - "a": 1, - "b": "x", - "c": 3 -} -{ - "d": 4 -} -{ - "1": 5, - "f": 6 -} - -mlr --ojson --jlistwrap --jknquoteint cat ./reg_test/input/json-output-options.dkvp -[ -{ "a": 1, "b": "x", "c": 3 } -,{ "d": 4 } -,{ "1": 5, "f": 6 } -] - -mlr --ojson --jvstack --jlistwrap --jknquoteint cat ./reg_test/input/json-output-options.dkvp -[ -{ - "a": 1, - "b": "x", - "c": 3 -} -,{ - "d": 4 -} -,{ - "1": 5, - "f": 6 -} -] - -mlr put -q --jvquoteall dump $* ./reg_test/input/json-output-options.dkvp -{ - "a": "1", - "b": "x", - "c": "3" -} -{ - "d": "4" -} -{ - "1": "5", - "f": "6" -} - -mlr put -q --jvquoteall o = $*; o[7] = 8; dump o ./reg_test/input/json-output-options.dkvp -{ - "a": "1", - "b": "x", - "c": "3", - "7": "8" -} -{ - "d": "4", - "7": "8" -} -{ - "1": "5", - "f": "6", - "7": "8" -} - -mlr put -q --jknquoteint dump $* ./reg_test/input/json-output-options.dkvp -{ - "a": 1, - "b": "x", - "c": 3 -} -{ - "d": 4 -} -{ - "1": 5, - "f": 6 -} - -mlr put -q --jknquoteint o = $*; o[7] = 8; dump o ./reg_test/input/json-output-options.dkvp -{ - "a": 1, - "b": "x", - "c": 3, - 7: 8 -} -{ - "d": 4, - 7: 8 -} -{ - "1": 5, - "f": 6, - 7: 8 -} - -mlr --ijson --opprint cat ./reg_test/input/small-non-nested-wrapped.json ./reg_test/input/small-non-nested-wrapped.json -a b i x y -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --icsv --ojson --rs lf cat -{ "col": "abc \"def\" \\ghi" } - -mlr --icsv --ojson --jvquoteall --rs lf cat -{ "col": "abc \"def\" \\ghi" } - -mlr --ijson --oxtab cat ./reg_test/input/arrays.json -a 1 -b 1 - -a 2 -b:0 2 -b:1 3 - -a 3 -b:c:0 4 -b:c:1 5 - -a 4 -b:c:d:0 4 -b:c:d:1 5 - -a 5 -b:0 6 -b:1 7 -b:2:0 8 -b:2:1 9 - -a 6 -b:0:0:0 11 - -mlr --ijson --oxtab --json-map-arrays-on-input cat ./reg_test/input/arrays.json -a 1 -b 1 - -a 2 -b:0 2 -b:1 3 - -a 3 -b:c:0 4 -b:c:1 5 - -a 4 -b:c:d:0 4 -b:c:d:1 5 - -a 5 -b:0 6 -b:1 7 -b:2:0 8 -b:2:1 9 - -a 6 -b:0:0:0 11 - -mlr --ijson --oxtab --json-skip-arrays-on-input cat ./reg_test/input/arrays.json -a 1 -b 1 - -a 2 - -a 3 - -a 4 - -a 5 - -a 6 - -mlr --ijson --oxtab --json-fatal-arrays-on-input cat ./reg_test/input/arrays.json -mlr: found array item within JSON object. This is valid but unmillerable JSON. -Use --json-skip-arrays-on-input to exclude these from input without fataling. -Or, --json-map-arrays-on-input to convert them to integer-indexed maps. -mlr: Unable to parse JSON data. - -mlr --json cat ./reg_test/input/escapes.json -{ "abc\bdef\fghi": "jkl\nmno\rpqr\tstu\"vw\\xyz" } -{ "abc\bdef\fghi": "jkl\nmno\rpqr\tstu\"vw\\\\xyz" } - - -================================================================ -FORMAT-CONVERSION KEYSTROKE-SAVERS - -mlr --d2t cat ./reg_test/input/abixy.dkvp -a b i x y -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --d2n cat ./reg_test/input/abixy.dkvp -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --d2j cat ./reg_test/input/abixy.dkvp -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } - -mlr --d2p cat ./reg_test/input/abixy.dkvp -a b i x y -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --d2x cat ./reg_test/input/abixy.dkvp -a pan -b pan -i 1 -x 0.3467901443380824 -y 0.7268028627434533 - -a eks -b pan -i 2 -x 0.7586799647899636 -y 0.5221511083334797 - -a wye -b wye -i 3 -x 0.20460330576630303 -y 0.33831852551664776 - -a eks -b wye -i 4 -x 0.38139939387114097 -y 0.13418874328430463 - -a wye -b pan -i 5 -x 0.5732889198020006 -y 0.8636244699032729 - -a zee -b pan -i 6 -x 0.5271261600918548 -y 0.49322128674835697 - -a eks -b zee -i 7 -x 0.6117840605678454 -y 0.1878849191181694 - -a zee -b wye -i 8 -x 0.5985540091064224 -y 0.976181385699006 - -a hat -b wye -i 9 -x 0.03144187646093577 -y 0.7495507603507059 - -a pan -b wye -i 10 -x 0.5026260055412137 -y 0.9526183602969864 - -mlr --d2m cat ./reg_test/input/abixy.dkvp -| a | b | i | x | y | -| --- | --- | --- | --- | --- | -| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | -| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | -| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | -| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | -| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | -| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | -| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | -| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | -| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | -| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | - -mlr --c2t cat ./reg_test/input/abixy.csv -a b i x y -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --c2d cat ./reg_test/input/abixy.csv -a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 -a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 -a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 -a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 -a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 -a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 -a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 -a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 -a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 -a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 - -mlr --c2n cat ./reg_test/input/abixy.csv -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --c2j cat ./reg_test/input/abixy.csv -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } - -mlr --c2p cat ./reg_test/input/abixy.csv -a b i x y -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --c2x cat ./reg_test/input/abixy.csv -a pan -b pan -i 1 -x 0.3467901443380824 -y 0.7268028627434533 - -a eks -b pan -i 2 -x 0.7586799647899636 -y 0.5221511083334797 - -a wye -b wye -i 3 -x 0.20460330576630303 -y 0.33831852551664776 - -a eks -b wye -i 4 -x 0.38139939387114097 -y 0.13418874328430463 - -a wye -b pan -i 5 -x 0.5732889198020006 -y 0.8636244699032729 - -a zee -b pan -i 6 -x 0.5271261600918548 -y 0.49322128674835697 - -a eks -b zee -i 7 -x 0.6117840605678454 -y 0.1878849191181694 - -a zee -b wye -i 8 -x 0.5985540091064224 -y 0.976181385699006 - -a hat -b wye -i 9 -x 0.03144187646093577 -y 0.7495507603507059 - -a pan -b wye -i 10 -x 0.5026260055412137 -y 0.9526183602969864 - -mlr --c2m cat ./reg_test/input/abixy.csv -| a | b | i | x | y | -| --- | --- | --- | --- | --- | -| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | -| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | -| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | -| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | -| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | -| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | -| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | -| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | -| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | -| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | - -mlr --t2c cat ./reg_test/input/abixy.tsv -a,b,i,x,y -pan,pan,1,0.3467901443380824,0.7268028627434533 -eks,pan,2,0.7586799647899636,0.5221511083334797 -wye,wye,3,0.20460330576630303,0.33831852551664776 -eks,wye,4,0.38139939387114097,0.13418874328430463 -wye,pan,5,0.5732889198020006,0.8636244699032729 -zee,pan,6,0.5271261600918548,0.49322128674835697 -eks,zee,7,0.6117840605678454,0.1878849191181694 -zee,wye,8,0.5985540091064224,0.976181385699006 -hat,wye,9,0.03144187646093577,0.7495507603507059 -pan,wye,10,0.5026260055412137,0.9526183602969864 - -mlr --t2d cat ./reg_test/input/abixy.tsv -a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 -a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 -a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 -a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 -a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 -a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 -a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 -a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 -a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 -a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 - -mlr --t2n cat ./reg_test/input/abixy.tsv -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --t2j cat ./reg_test/input/abixy.tsv -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } - -mlr --t2p cat ./reg_test/input/abixy.tsv -a b i x y -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --t2x cat ./reg_test/input/abixy.tsv -a pan -b pan -i 1 -x 0.3467901443380824 -y 0.7268028627434533 - -a eks -b pan -i 2 -x 0.7586799647899636 -y 0.5221511083334797 - -a wye -b wye -i 3 -x 0.20460330576630303 -y 0.33831852551664776 - -a eks -b wye -i 4 -x 0.38139939387114097 -y 0.13418874328430463 - -a wye -b pan -i 5 -x 0.5732889198020006 -y 0.8636244699032729 - -a zee -b pan -i 6 -x 0.5271261600918548 -y 0.49322128674835697 - -a eks -b zee -i 7 -x 0.6117840605678454 -y 0.1878849191181694 - -a zee -b wye -i 8 -x 0.5985540091064224 -y 0.976181385699006 - -a hat -b wye -i 9 -x 0.03144187646093577 -y 0.7495507603507059 - -a pan -b wye -i 10 -x 0.5026260055412137 -y 0.9526183602969864 - -mlr --t2m cat ./reg_test/input/abixy.tsv -| a | b | i | x | y | -| --- | --- | --- | --- | --- | -| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | -| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | -| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | -| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | -| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | -| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | -| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | -| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | -| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | -| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | - -mlr --n2c cat ./reg_test/input/abixy.nidx -1,2,3,4,5 -pan,pan,1,0.3467901443380824,0.7268028627434533 -eks,pan,2,0.7586799647899636,0.5221511083334797 -wye,wye,3,0.20460330576630303,0.33831852551664776 -eks,wye,4,0.38139939387114097,0.13418874328430463 -wye,pan,5,0.5732889198020006,0.8636244699032729 -zee,pan,6,0.5271261600918548,0.49322128674835697 -eks,zee,7,0.6117840605678454,0.1878849191181694 -zee,wye,8,0.5985540091064224,0.976181385699006 -hat,wye,9,0.03144187646093577,0.7495507603507059 -pan,wye,10,0.5026260055412137,0.9526183602969864 - -mlr --n2t cat ./reg_test/input/abixy.nidx -1 2 3 4 5 -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --n2d cat ./reg_test/input/abixy.nidx -1=pan,2=pan,3=1,4=0.3467901443380824,5=0.7268028627434533 -1=eks,2=pan,3=2,4=0.7586799647899636,5=0.5221511083334797 -1=wye,2=wye,3=3,4=0.20460330576630303,5=0.33831852551664776 -1=eks,2=wye,3=4,4=0.38139939387114097,5=0.13418874328430463 -1=wye,2=pan,3=5,4=0.5732889198020006,5=0.8636244699032729 -1=zee,2=pan,3=6,4=0.5271261600918548,5=0.49322128674835697 -1=eks,2=zee,3=7,4=0.6117840605678454,5=0.1878849191181694 -1=zee,2=wye,3=8,4=0.5985540091064224,5=0.976181385699006 -1=hat,2=wye,3=9,4=0.03144187646093577,5=0.7495507603507059 -1=pan,2=wye,3=10,4=0.5026260055412137,5=0.9526183602969864 - -mlr --n2j cat ./reg_test/input/abixy.nidx -{ "1": "pan", "2": "pan", "3": 1, "4": 0.3467901443380824, "5": 0.7268028627434533 } -{ "1": "eks", "2": "pan", "3": 2, "4": 0.7586799647899636, "5": 0.5221511083334797 } -{ "1": "wye", "2": "wye", "3": 3, "4": 0.20460330576630303, "5": 0.33831852551664776 } -{ "1": "eks", "2": "wye", "3": 4, "4": 0.38139939387114097, "5": 0.13418874328430463 } -{ "1": "wye", "2": "pan", "3": 5, "4": 0.5732889198020006, "5": 0.8636244699032729 } -{ "1": "zee", "2": "pan", "3": 6, "4": 0.5271261600918548, "5": 0.49322128674835697 } -{ "1": "eks", "2": "zee", "3": 7, "4": 0.6117840605678454, "5": 0.1878849191181694 } -{ "1": "zee", "2": "wye", "3": 8, "4": 0.5985540091064224, "5": 0.976181385699006 } -{ "1": "hat", "2": "wye", "3": 9, "4": 0.03144187646093577, "5": 0.7495507603507059 } -{ "1": "pan", "2": "wye", "3": 10, "4": 0.5026260055412137, "5": 0.9526183602969864 } - -mlr --n2p cat ./reg_test/input/abixy.nidx -1 2 3 4 5 -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --n2x cat ./reg_test/input/abixy.nidx -1 pan -2 pan -3 1 -4 0.3467901443380824 -5 0.7268028627434533 - -1 eks -2 pan -3 2 -4 0.7586799647899636 -5 0.5221511083334797 - -1 wye -2 wye -3 3 -4 0.20460330576630303 -5 0.33831852551664776 - -1 eks -2 wye -3 4 -4 0.38139939387114097 -5 0.13418874328430463 - -1 wye -2 pan -3 5 -4 0.5732889198020006 -5 0.8636244699032729 - -1 zee -2 pan -3 6 -4 0.5271261600918548 -5 0.49322128674835697 - -1 eks -2 zee -3 7 -4 0.6117840605678454 -5 0.1878849191181694 - -1 zee -2 wye -3 8 -4 0.5985540091064224 -5 0.976181385699006 - -1 hat -2 wye -3 9 -4 0.03144187646093577 -5 0.7495507603507059 - -1 pan -2 wye -3 10 -4 0.5026260055412137 -5 0.9526183602969864 - -mlr --n2m cat ./reg_test/input/abixy.nidx -| 1 | 2 | 3 | 4 | 5 | -| --- | --- | --- | --- | --- | -| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | -| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | -| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | -| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | -| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | -| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | -| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | -| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | -| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | -| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | - -mlr --j2c cat ./reg_test/input/abixy.json -a,b,i,x,y -pan,pan,1,0.3467901443380824,0.7268028627434533 -eks,pan,2,0.7586799647899636,0.5221511083334797 -wye,wye,3,0.20460330576630303,0.33831852551664776 -eks,wye,4,0.38139939387114097,0.13418874328430463 -wye,pan,5,0.5732889198020006,0.8636244699032729 -zee,pan,6,0.5271261600918548,0.49322128674835697 -eks,zee,7,0.6117840605678454,0.1878849191181694 -zee,wye,8,0.5985540091064224,0.976181385699006 -hat,wye,9,0.03144187646093577,0.7495507603507059 -pan,wye,10,0.5026260055412137,0.9526183602969864 - -mlr --j2t cat ./reg_test/input/abixy.json -a b i x y -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --j2d cat ./reg_test/input/abixy.json -a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 -a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 -a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 -a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 -a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 -a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 -a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 -a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 -a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 -a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 - -mlr --j2n cat ./reg_test/input/abixy.json -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --j2p cat ./reg_test/input/abixy.json -a b i x y -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --j2x cat ./reg_test/input/abixy.json -a pan -b pan -i 1 -x 0.3467901443380824 -y 0.7268028627434533 - -a eks -b pan -i 2 -x 0.7586799647899636 -y 0.5221511083334797 - -a wye -b wye -i 3 -x 0.20460330576630303 -y 0.33831852551664776 - -a eks -b wye -i 4 -x 0.38139939387114097 -y 0.13418874328430463 - -a wye -b pan -i 5 -x 0.5732889198020006 -y 0.8636244699032729 - -a zee -b pan -i 6 -x 0.5271261600918548 -y 0.49322128674835697 - -a eks -b zee -i 7 -x 0.6117840605678454 -y 0.1878849191181694 - -a zee -b wye -i 8 -x 0.5985540091064224 -y 0.976181385699006 - -a hat -b wye -i 9 -x 0.03144187646093577 -y 0.7495507603507059 - -a pan -b wye -i 10 -x 0.5026260055412137 -y 0.9526183602969864 - -mlr --j2m cat ./reg_test/input/abixy.json -| a | b | i | x | y | -| --- | --- | --- | --- | --- | -| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | -| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | -| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | -| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | -| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | -| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | -| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | -| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | -| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | -| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | - -mlr --p2c cat ./reg_test/input/abixy.pprint -a,b,i,x,y -pan,pan,1,0.3467901443380824,0.7268028627434533 -eks,pan,2,0.7586799647899636,0.5221511083334797 -wye,wye,3,0.20460330576630303,0.33831852551664776 -eks,wye,4,0.38139939387114097,0.13418874328430463 -wye,pan,5,0.5732889198020006,0.8636244699032729 -zee,pan,6,0.5271261600918548,0.49322128674835697 -eks,zee,7,0.6117840605678454,0.1878849191181694 -zee,wye,8,0.5985540091064224,0.976181385699006 -hat,wye,9,0.03144187646093577,0.7495507603507059 -pan,wye,10,0.5026260055412137,0.9526183602969864 - -mlr --p2t cat ./reg_test/input/abixy.pprint -a b i x y -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --p2d cat ./reg_test/input/abixy.pprint -a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 -a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 -a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 -a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 -a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 -a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 -a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 -a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 -a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 -a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 - -mlr --p2n cat ./reg_test/input/abixy.pprint -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --p2j cat ./reg_test/input/abixy.pprint -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } - -mlr --p2x cat ./reg_test/input/abixy.pprint -a pan -b pan -i 1 -x 0.3467901443380824 -y 0.7268028627434533 - -a eks -b pan -i 2 -x 0.7586799647899636 -y 0.5221511083334797 - -a wye -b wye -i 3 -x 0.20460330576630303 -y 0.33831852551664776 - -a eks -b wye -i 4 -x 0.38139939387114097 -y 0.13418874328430463 - -a wye -b pan -i 5 -x 0.5732889198020006 -y 0.8636244699032729 - -a zee -b pan -i 6 -x 0.5271261600918548 -y 0.49322128674835697 - -a eks -b zee -i 7 -x 0.6117840605678454 -y 0.1878849191181694 - -a zee -b wye -i 8 -x 0.5985540091064224 -y 0.976181385699006 - -a hat -b wye -i 9 -x 0.03144187646093577 -y 0.7495507603507059 - -a pan -b wye -i 10 -x 0.5026260055412137 -y 0.9526183602969864 - -mlr --p2m cat ./reg_test/input/abixy.pprint -| a | b | i | x | y | -| --- | --- | --- | --- | --- | -| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | -| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | -| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | -| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | -| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | -| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | -| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | -| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | -| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | -| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | - -mlr --x2c cat ./reg_test/input/abixy.xtab -a,b,i,x,y -pan,pan,1,0.3467901443380824,0.7268028627434533 -eks,pan,2,0.7586799647899636,0.5221511083334797 -wye,wye,3,0.20460330576630303,0.33831852551664776 -eks,wye,4,0.38139939387114097,0.13418874328430463 -wye,pan,5,0.5732889198020006,0.8636244699032729 -zee,pan,6,0.5271261600918548,0.49322128674835697 -eks,zee,7,0.6117840605678454,0.1878849191181694 -zee,wye,8,0.5985540091064224,0.976181385699006 -hat,wye,9,0.03144187646093577,0.7495507603507059 -pan,wye,10,0.5026260055412137,0.9526183602969864 - -mlr --x2t cat ./reg_test/input/abixy.xtab -a b i x y -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --x2d cat ./reg_test/input/abixy.xtab -a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 -a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 -a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 -a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 -a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 -a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 -a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 -a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 -a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 -a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 - -mlr --x2n cat ./reg_test/input/abixy.xtab -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --x2j cat ./reg_test/input/abixy.xtab -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } - -mlr --x2p cat ./reg_test/input/abixy.xtab -a b i x y -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 -wye pan 5 0.5732889198020006 0.8636244699032729 -zee pan 6 0.5271261600918548 0.49322128674835697 -eks zee 7 0.6117840605678454 0.1878849191181694 -zee wye 8 0.5985540091064224 0.976181385699006 -hat wye 9 0.03144187646093577 0.7495507603507059 -pan wye 10 0.5026260055412137 0.9526183602969864 - -mlr --x2m cat ./reg_test/input/abixy.xtab -| a | b | i | x | y | -| --- | --- | --- | --- | --- | -| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | -| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | -| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | -| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | -| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | -| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | -| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | -| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | -| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | -| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | - - -================================================================ -LF/CRLF AND AUTODETECT - -mlr --irs auto --ors lf cat ./reg_test/input/line-term-lf.dkvp -a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 -a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 -a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 -a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 -a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 -a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 -a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 -a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 -a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 -a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 - -mlr --irs auto --ors lf cat ./reg_test/input/line-term-crlf.dkvp -a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 -a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 -a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 -a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 -a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 -a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 -a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 -a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 -a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 -a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 - -mlr cat ./reg_test/input/line-term-lf.dkvp -a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 -a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 -a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 -a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 -a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 -a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 -a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 -a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 -a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 -a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 - -mlr cat ./reg_test/input/line-term-crlf.dkvp -a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 -a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 -a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 -a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 -a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 -a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 -a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 -a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 -a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 -a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 - - ----------------------------------------------------------------- nidx -mlr --irs auto --ors lf --nidx --fs comma cat ./reg_test/input/line-term-lf.dkvp -a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 -a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 -a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 -a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 -a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 -a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 -a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 -a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 -a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 -a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 - -mlr --irs auto --ors lf --nidx --fs comma cat ./reg_test/input/line-term-crlf.dkvp -a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 -a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 -a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 -a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 -a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 -a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 -a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 -a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 -a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 -a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 - -mlr --nidx --fs comma cat ./reg_test/input/line-term-lf.dkvp -a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 -a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 -a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 -a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 -a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 -a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 -a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 -a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 -a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 -a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 - -mlr --nidx --fs comma cat ./reg_test/input/line-term-crlf.dkvp -a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 -a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 -a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 -a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 -a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 -a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 -a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 -a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 -a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 -a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 - - ----------------------------------------------------------------- csvlite -mlr --irs auto --ors lf --csvlite cat ./reg_test/input/line-term-lf.csv -a,b,i,x,y -pan,pan,1,0.3467901443380824,0.7268028627434533 -eks,pan,2,0.7586799647899636,0.5221511083334797 -wye,wye,3,0.20460330576630303,0.33831852551664776 -eks,wye,4,0.38139939387114097,0.13418874328430463 -wye,pan,5,0.5732889198020006,0.8636244699032729 -zee,pan,6,0.5271261600918548,0.49322128674835697 -eks,zee,7,0.6117840605678454,0.1878849191181694 -zee,wye,8,0.5985540091064224,0.976181385699006 -hat,wye,9,0.03144187646093577,0.7495507603507059 -pan,wye,10,0.5026260055412137,0.9526183602969864 - -mlr --irs auto --ors lf --csvlite cat ./reg_test/input/line-term-crlf.csv -a,b,i,x,y -pan,pan,1,0.3467901443380824,0.7268028627434533 -eks,pan,2,0.7586799647899636,0.5221511083334797 -wye,wye,3,0.20460330576630303,0.33831852551664776 -eks,wye,4,0.38139939387114097,0.13418874328430463 -wye,pan,5,0.5732889198020006,0.8636244699032729 -zee,pan,6,0.5271261600918548,0.49322128674835697 -eks,zee,7,0.6117840605678454,0.1878849191181694 -zee,wye,8,0.5985540091064224,0.976181385699006 -hat,wye,9,0.03144187646093577,0.7495507603507059 -pan,wye,10,0.5026260055412137,0.9526183602969864 - -mlr --csvlite cat ./reg_test/input/line-term-lf.csv -a,b,i,x,y -pan,pan,1,0.3467901443380824,0.7268028627434533 -eks,pan,2,0.7586799647899636,0.5221511083334797 -wye,wye,3,0.20460330576630303,0.33831852551664776 -eks,wye,4,0.38139939387114097,0.13418874328430463 -wye,pan,5,0.5732889198020006,0.8636244699032729 -zee,pan,6,0.5271261600918548,0.49322128674835697 -eks,zee,7,0.6117840605678454,0.1878849191181694 -zee,wye,8,0.5985540091064224,0.976181385699006 -hat,wye,9,0.03144187646093577,0.7495507603507059 -pan,wye,10,0.5026260055412137,0.9526183602969864 - -mlr --csvlite cat ./reg_test/input/line-term-crlf.csv -a,b,i,x,y -pan,pan,1,0.3467901443380824,0.7268028627434533 -eks,pan,2,0.7586799647899636,0.5221511083334797 -wye,wye,3,0.20460330576630303,0.33831852551664776 -eks,wye,4,0.38139939387114097,0.13418874328430463 -wye,pan,5,0.5732889198020006,0.8636244699032729 -zee,pan,6,0.5271261600918548,0.49322128674835697 -eks,zee,7,0.6117840605678454,0.1878849191181694 -zee,wye,8,0.5985540091064224,0.976181385699006 -hat,wye,9,0.03144187646093577,0.7495507603507059 -pan,wye,10,0.5026260055412137,0.9526183602969864 - - ----------------------------------------------------------------- pprint -mlr --irs auto --ors lf --pprint cat ./reg_test/input/line-term-lf.csv -a,b,i,x,y -pan,pan,1,0.3467901443380824,0.7268028627434533 -eks,pan,2,0.7586799647899636,0.5221511083334797 -wye,wye,3,0.20460330576630303,0.33831852551664776 -eks,wye,4,0.38139939387114097,0.13418874328430463 -wye,pan,5,0.5732889198020006,0.8636244699032729 -zee,pan,6,0.5271261600918548,0.49322128674835697 -eks,zee,7,0.6117840605678454,0.1878849191181694 -zee,wye,8,0.5985540091064224,0.976181385699006 -hat,wye,9,0.03144187646093577,0.7495507603507059 -pan,wye,10,0.5026260055412137,0.9526183602969864 - -mlr --irs auto --ors lf --pprint cat ./reg_test/input/line-term-crlf.csv -a,b,i,x,y -pan,pan,1,0.3467901443380824,0.7268028627434533 -eks,pan,2,0.7586799647899636,0.5221511083334797 -wye,wye,3,0.20460330576630303,0.33831852551664776 -eks,wye,4,0.38139939387114097,0.13418874328430463 -wye,pan,5,0.5732889198020006,0.8636244699032729 -zee,pan,6,0.5271261600918548,0.49322128674835697 -eks,zee,7,0.6117840605678454,0.1878849191181694 -zee,wye,8,0.5985540091064224,0.976181385699006 -hat,wye,9,0.03144187646093577,0.7495507603507059 -pan,wye,10,0.5026260055412137,0.9526183602969864 - -mlr --pprint cat ./reg_test/input/line-term-lf.csv -a,b,i,x,y -pan,pan,1,0.3467901443380824,0.7268028627434533 -eks,pan,2,0.7586799647899636,0.5221511083334797 -wye,wye,3,0.20460330576630303,0.33831852551664776 -eks,wye,4,0.38139939387114097,0.13418874328430463 -wye,pan,5,0.5732889198020006,0.8636244699032729 -zee,pan,6,0.5271261600918548,0.49322128674835697 -eks,zee,7,0.6117840605678454,0.1878849191181694 -zee,wye,8,0.5985540091064224,0.976181385699006 -hat,wye,9,0.03144187646093577,0.7495507603507059 -pan,wye,10,0.5026260055412137,0.9526183602969864 - -mlr --pprint cat ./reg_test/input/line-term-crlf.csv -a,b,i,x,y -pan,pan,1,0.3467901443380824,0.7268028627434533 -eks,pan,2,0.7586799647899636,0.5221511083334797 -wye,wye,3,0.20460330576630303,0.33831852551664776 -eks,wye,4,0.38139939387114097,0.13418874328430463 -wye,pan,5,0.5732889198020006,0.8636244699032729 -zee,pan,6,0.5271261600918548,0.49322128674835697 -eks,zee,7,0.6117840605678454,0.1878849191181694 -zee,wye,8,0.5985540091064224,0.976181385699006 -hat,wye,9,0.03144187646093577,0.7495507603507059 -pan,wye,10,0.5026260055412137,0.9526183602969864 - - ----------------------------------------------------------------- xtab -mlr --ifs auto --xtab cat ./reg_test/input/line-term-lf.xtab -a pan -b pan -i 1 -x 0.3467901443380824 -y 0.7268028627434533 - -a eks -b pan -i 2 -x 0.7586799647899636 -y 0.5221511083334797 - -a wye -b wye -i 3 -x 0.20460330576630303 -y 0.33831852551664776 - -a eks -b wye -i 4 -x 0.38139939387114097 -y 0.13418874328430463 - -a wye -b pan -i 5 -x 0.5732889198020006 -y 0.8636244699032729 - -a zee -b pan -i 6 -x 0.5271261600918548 -y 0.49322128674835697 - -a eks -b zee -i 7 -x 0.6117840605678454 -y 0.1878849191181694 - -a zee -b wye -i 8 -x 0.5985540091064224 -y 0.976181385699006 - -a hat -b wye -i 9 -x 0.03144187646093577 -y 0.7495507603507059 - -a pan -b wye -i 10 -x 0.5026260055412137 -y 0.9526183602969864 - -mlr --ifs auto --xtab cat ./reg_test/input/line-term-crlf.xtab -a pan -b pan -i 1 -x 0.3467901443380824 -y 0.7268028627434533 - -a eks -b pan -i 2 -x 0.7586799647899636 -y 0.5221511083334797 - -a wye -b wye -i 3 -x 0.20460330576630303 -y 0.33831852551664776 - -a eks -b wye -i 4 -x 0.38139939387114097 -y 0.13418874328430463 - -a wye -b pan -i 5 -x 0.5732889198020006 -y 0.8636244699032729 - -a zee -b pan -i 6 -x 0.5271261600918548 -y 0.49322128674835697 - -a eks -b zee -i 7 -x 0.6117840605678454 -y 0.1878849191181694 - -a zee -b wye -i 8 -x 0.5985540091064224 -y 0.976181385699006 - -a hat -b wye -i 9 -x 0.03144187646093577 -y 0.7495507603507059 - -a pan -b wye -i 10 -x 0.5026260055412137 -y 0.9526183602969864 - -mlr --fs auto --xtab cat ./reg_test/input/line-term-lf.xtab -a pan -b pan -i 1 -x 0.3467901443380824 -y 0.7268028627434533 - -a eks -b pan -i 2 -x 0.7586799647899636 -y 0.5221511083334797 - -a wye -b wye -i 3 -x 0.20460330576630303 -y 0.33831852551664776 - -a eks -b wye -i 4 -x 0.38139939387114097 -y 0.13418874328430463 - -a wye -b pan -i 5 -x 0.5732889198020006 -y 0.8636244699032729 - -a zee -b pan -i 6 -x 0.5271261600918548 -y 0.49322128674835697 - -a eks -b zee -i 7 -x 0.6117840605678454 -y 0.1878849191181694 - -a zee -b wye -i 8 -x 0.5985540091064224 -y 0.976181385699006 - -a hat -b wye -i 9 -x 0.03144187646093577 -y 0.7495507603507059 - -a pan -b wye -i 10 -x 0.5026260055412137 -y 0.9526183602969864 - -mlr --fs auto --xtab cat ./reg_test/input/line-term-crlf.xtab -a pan -b pan -i 1 -x 0.3467901443380824 -y 0.7268028627434533 - -a eks -b pan -i 2 -x 0.7586799647899636 -y 0.5221511083334797 - -a wye -b wye -i 3 -x 0.20460330576630303 -y 0.33831852551664776 - -a eks -b wye -i 4 -x 0.38139939387114097 -y 0.13418874328430463 - -a wye -b pan -i 5 -x 0.5732889198020006 -y 0.8636244699032729 - -a zee -b pan -i 6 -x 0.5271261600918548 -y 0.49322128674835697 - -a eks -b zee -i 7 -x 0.6117840605678454 -y 0.1878849191181694 - -a zee -b wye -i 8 -x 0.5985540091064224 -y 0.976181385699006 - -a hat -b wye -i 9 -x 0.03144187646093577 -y 0.7495507603507059 - -a pan -b wye -i 10 -x 0.5026260055412137 -y 0.9526183602969864 - - ----------------------------------------------------------------- xtab -mlr --ifs auto --xtab cat ./reg_test/input/line-term-lf.xtab -a pan -b pan -i 1 -x 0.3467901443380824 -y 0.7268028627434533 - -a eks -b pan -i 2 -x 0.7586799647899636 -y 0.5221511083334797 - -a wye -b wye -i 3 -x 0.20460330576630303 -y 0.33831852551664776 - -a eks -b wye -i 4 -x 0.38139939387114097 -y 0.13418874328430463 - -a wye -b pan -i 5 -x 0.5732889198020006 -y 0.8636244699032729 - -a zee -b pan -i 6 -x 0.5271261600918548 -y 0.49322128674835697 - -a eks -b zee -i 7 -x 0.6117840605678454 -y 0.1878849191181694 - -a zee -b wye -i 8 -x 0.5985540091064224 -y 0.976181385699006 - -a hat -b wye -i 9 -x 0.03144187646093577 -y 0.7495507603507059 - -a pan -b wye -i 10 -x 0.5026260055412137 -y 0.9526183602969864 - -mlr --ifs auto --xtab cat ./reg_test/input/line-term-crlf.xtab -a pan -b pan -i 1 -x 0.3467901443380824 -y 0.7268028627434533 - -a eks -b pan -i 2 -x 0.7586799647899636 -y 0.5221511083334797 - -a wye -b wye -i 3 -x 0.20460330576630303 -y 0.33831852551664776 - -a eks -b wye -i 4 -x 0.38139939387114097 -y 0.13418874328430463 - -a wye -b pan -i 5 -x 0.5732889198020006 -y 0.8636244699032729 - -a zee -b pan -i 6 -x 0.5271261600918548 -y 0.49322128674835697 - -a eks -b zee -i 7 -x 0.6117840605678454 -y 0.1878849191181694 - -a zee -b wye -i 8 -x 0.5985540091064224 -y 0.976181385699006 - -a hat -b wye -i 9 -x 0.03144187646093577 -y 0.7495507603507059 - -a pan -b wye -i 10 -x 0.5026260055412137 -y 0.9526183602969864 - -mlr --fs auto --xtab cat ./reg_test/input/line-term-lf.xtab -a pan -b pan -i 1 -x 0.3467901443380824 -y 0.7268028627434533 - -a eks -b pan -i 2 -x 0.7586799647899636 -y 0.5221511083334797 - -a wye -b wye -i 3 -x 0.20460330576630303 -y 0.33831852551664776 - -a eks -b wye -i 4 -x 0.38139939387114097 -y 0.13418874328430463 - -a wye -b pan -i 5 -x 0.5732889198020006 -y 0.8636244699032729 - -a zee -b pan -i 6 -x 0.5271261600918548 -y 0.49322128674835697 - -a eks -b zee -i 7 -x 0.6117840605678454 -y 0.1878849191181694 - -a zee -b wye -i 8 -x 0.5985540091064224 -y 0.976181385699006 - -a hat -b wye -i 9 -x 0.03144187646093577 -y 0.7495507603507059 - -a pan -b wye -i 10 -x 0.5026260055412137 -y 0.9526183602969864 - -mlr --fs auto --xtab cat ./reg_test/input/line-term-crlf.xtab -a pan -b pan -i 1 -x 0.3467901443380824 -y 0.7268028627434533 - -a eks -b pan -i 2 -x 0.7586799647899636 -y 0.5221511083334797 - -a wye -b wye -i 3 -x 0.20460330576630303 -y 0.33831852551664776 - -a eks -b wye -i 4 -x 0.38139939387114097 -y 0.13418874328430463 - -a wye -b pan -i 5 -x 0.5732889198020006 -y 0.8636244699032729 - -a zee -b pan -i 6 -x 0.5271261600918548 -y 0.49322128674835697 - -a eks -b zee -i 7 -x 0.6117840605678454 -y 0.1878849191181694 - -a zee -b wye -i 8 -x 0.5985540091064224 -y 0.976181385699006 - -a hat -b wye -i 9 -x 0.03144187646093577 -y 0.7495507603507059 - -a pan -b wye -i 10 -x 0.5026260055412137 -y 0.9526183602969864 - - ----------------------------------------------------------------- csv -mlr --irs auto --ors lf --csv cat ./reg_test/input/line-term-lf.csv -a,b,i,x,y -pan,pan,1,0.3467901443380824,0.7268028627434533 -eks,pan,2,0.7586799647899636,0.5221511083334797 -wye,wye,3,0.20460330576630303,0.33831852551664776 -eks,wye,4,0.38139939387114097,0.13418874328430463 -wye,pan,5,0.5732889198020006,0.8636244699032729 -zee,pan,6,0.5271261600918548,0.49322128674835697 -eks,zee,7,0.6117840605678454,0.1878849191181694 -zee,wye,8,0.5985540091064224,0.976181385699006 -hat,wye,9,0.03144187646093577,0.7495507603507059 -pan,wye,10,0.5026260055412137,0.9526183602969864 - -mlr --irs auto --ors lf --csv cat ./reg_test/input/line-term-crlf.csv -a,b,i,x,y -pan,pan,1,0.3467901443380824,0.7268028627434533 -eks,pan,2,0.7586799647899636,0.5221511083334797 -wye,wye,3,0.20460330576630303,0.33831852551664776 -eks,wye,4,0.38139939387114097,0.13418874328430463 -wye,pan,5,0.5732889198020006,0.8636244699032729 -zee,pan,6,0.5271261600918548,0.49322128674835697 -eks,zee,7,0.6117840605678454,0.1878849191181694 -zee,wye,8,0.5985540091064224,0.976181385699006 -hat,wye,9,0.03144187646093577,0.7495507603507059 -pan,wye,10,0.5026260055412137,0.9526183602969864 - -mlr --csv cat ./reg_test/input/line-term-lf.csv -a,b,i,x,y -pan,pan,1,0.3467901443380824,0.7268028627434533 -eks,pan,2,0.7586799647899636,0.5221511083334797 -wye,wye,3,0.20460330576630303,0.33831852551664776 -eks,wye,4,0.38139939387114097,0.13418874328430463 -wye,pan,5,0.5732889198020006,0.8636244699032729 -zee,pan,6,0.5271261600918548,0.49322128674835697 -eks,zee,7,0.6117840605678454,0.1878849191181694 -zee,wye,8,0.5985540091064224,0.976181385699006 -hat,wye,9,0.03144187646093577,0.7495507603507059 -pan,wye,10,0.5026260055412137,0.9526183602969864 - -mlr --csv cat ./reg_test/input/line-term-crlf.csv -a,b,i,x,y -pan,pan,1,0.3467901443380824,0.7268028627434533 -eks,pan,2,0.7586799647899636,0.5221511083334797 -wye,wye,3,0.20460330576630303,0.33831852551664776 -eks,wye,4,0.38139939387114097,0.13418874328430463 -wye,pan,5,0.5732889198020006,0.8636244699032729 -zee,pan,6,0.5271261600918548,0.49322128674835697 -eks,zee,7,0.6117840605678454,0.1878849191181694 -zee,wye,8,0.5985540091064224,0.976181385699006 -hat,wye,9,0.03144187646093577,0.7495507603507059 -pan,wye,10,0.5026260055412137,0.9526183602969864 - - ----------------------------------------------------------------- json nowrap nostack -mlr --irs auto --ors lf --json cat ./reg_test/input/line-term-lf.json -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } - -mlr --irs auto --ors lf --json cat ./reg_test/input/line-term-crlf.json -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } - -mlr --json cat ./reg_test/input/line-term-lf.json -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } - -mlr --json cat ./reg_test/input/line-term-crlf.json -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } - - ----------------------------------------------------------------- json yeswrap nostack -mlr --irs auto --ors lf --jlistwrap --json cat ./reg_test/input/line-term-lf-wrap.json -[ -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -,{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -,{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -,{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -,{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -,{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -,{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -,{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -,{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -,{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } -] - -mlr --irs auto --ors lf --jlistwrap --json cat ./reg_test/input/line-term-crlf-wrap.json -[ -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -,{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -,{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -,{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -,{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -,{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -,{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -,{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -,{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -,{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } -] - -mlr --jlistwrap --json cat ./reg_test/input/line-term-lf-wrap.json -[ -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -,{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -,{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -,{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -,{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -,{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -,{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -,{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -,{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -,{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } -] - -mlr --jlistwrap --json cat ./reg_test/input/line-term-crlf-wrap.json -[ -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -,{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -,{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -,{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -,{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -,{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -,{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -,{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -,{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -,{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } -] - - ----------------------------------------------------------------- json nowrap yesstack -mlr --irs auto --json --jvstack cat ./reg_test/input/line-term-lf.json -{ - "a": "pan", - "b": "pan", - "i": 1, - "x": 0.3467901443380824, - "y": 0.7268028627434533 -} -{ - "a": "eks", - "b": "pan", - "i": 2, - "x": 0.7586799647899636, - "y": 0.5221511083334797 -} -{ - "a": "wye", - "b": "wye", - "i": 3, - "x": 0.20460330576630303, - "y": 0.33831852551664776 -} -{ - "a": "eks", - "b": "wye", - "i": 4, - "x": 0.38139939387114097, - "y": 0.13418874328430463 -} -{ - "a": "wye", - "b": "pan", - "i": 5, - "x": 0.5732889198020006, - "y": 0.8636244699032729 -} -{ - "a": "zee", - "b": "pan", - "i": 6, - "x": 0.5271261600918548, - "y": 0.49322128674835697 -} -{ - "a": "eks", - "b": "zee", - "i": 7, - "x": 0.6117840605678454, - "y": 0.1878849191181694 -} -{ - "a": "zee", - "b": "wye", - "i": 8, - "x": 0.5985540091064224, - "y": 0.976181385699006 -} -{ - "a": "hat", - "b": "wye", - "i": 9, - "x": 0.03144187646093577, - "y": 0.7495507603507059 -} -{ - "a": "pan", - "b": "wye", - "i": 10, - "x": 0.5026260055412137, - "y": 0.9526183602969864 -} - -mlr --irs auto --ors lf --json --jvstack cat ./reg_test/input/line-term-crlf.json -{ - "a": "pan", - "b": "pan", - "i": 1, - "x": 0.3467901443380824, - "y": 0.7268028627434533 -} -{ - "a": "eks", - "b": "pan", - "i": 2, - "x": 0.7586799647899636, - "y": 0.5221511083334797 -} -{ - "a": "wye", - "b": "wye", - "i": 3, - "x": 0.20460330576630303, - "y": 0.33831852551664776 -} -{ - "a": "eks", - "b": "wye", - "i": 4, - "x": 0.38139939387114097, - "y": 0.13418874328430463 -} -{ - "a": "wye", - "b": "pan", - "i": 5, - "x": 0.5732889198020006, - "y": 0.8636244699032729 -} -{ - "a": "zee", - "b": "pan", - "i": 6, - "x": 0.5271261600918548, - "y": 0.49322128674835697 -} -{ - "a": "eks", - "b": "zee", - "i": 7, - "x": 0.6117840605678454, - "y": 0.1878849191181694 -} -{ - "a": "zee", - "b": "wye", - "i": 8, - "x": 0.5985540091064224, - "y": 0.976181385699006 -} -{ - "a": "hat", - "b": "wye", - "i": 9, - "x": 0.03144187646093577, - "y": 0.7495507603507059 -} -{ - "a": "pan", - "b": "wye", - "i": 10, - "x": 0.5026260055412137, - "y": 0.9526183602969864 -} - -mlr --json --jvstack cat ./reg_test/input/line-term-lf.json -{ - "a": "pan", - "b": "pan", - "i": 1, - "x": 0.3467901443380824, - "y": 0.7268028627434533 -} -{ - "a": "eks", - "b": "pan", - "i": 2, - "x": 0.7586799647899636, - "y": 0.5221511083334797 -} -{ - "a": "wye", - "b": "wye", - "i": 3, - "x": 0.20460330576630303, - "y": 0.33831852551664776 -} -{ - "a": "eks", - "b": "wye", - "i": 4, - "x": 0.38139939387114097, - "y": 0.13418874328430463 -} -{ - "a": "wye", - "b": "pan", - "i": 5, - "x": 0.5732889198020006, - "y": 0.8636244699032729 -} -{ - "a": "zee", - "b": "pan", - "i": 6, - "x": 0.5271261600918548, - "y": 0.49322128674835697 -} -{ - "a": "eks", - "b": "zee", - "i": 7, - "x": 0.6117840605678454, - "y": 0.1878849191181694 -} -{ - "a": "zee", - "b": "wye", - "i": 8, - "x": 0.5985540091064224, - "y": 0.976181385699006 -} -{ - "a": "hat", - "b": "wye", - "i": 9, - "x": 0.03144187646093577, - "y": 0.7495507603507059 -} -{ - "a": "pan", - "b": "wye", - "i": 10, - "x": 0.5026260055412137, - "y": 0.9526183602969864 -} - -mlr --json --jvstack cat ./reg_test/input/line-term-crlf.json -{ - "a": "pan", - "b": "pan", - "i": 1, - "x": 0.3467901443380824, - "y": 0.7268028627434533 -} -{ - "a": "eks", - "b": "pan", - "i": 2, - "x": 0.7586799647899636, - "y": 0.5221511083334797 -} -{ - "a": "wye", - "b": "wye", - "i": 3, - "x": 0.20460330576630303, - "y": 0.33831852551664776 -} -{ - "a": "eks", - "b": "wye", - "i": 4, - "x": 0.38139939387114097, - "y": 0.13418874328430463 -} -{ - "a": "wye", - "b": "pan", - "i": 5, - "x": 0.5732889198020006, - "y": 0.8636244699032729 -} -{ - "a": "zee", - "b": "pan", - "i": 6, - "x": 0.5271261600918548, - "y": 0.49322128674835697 -} -{ - "a": "eks", - "b": "zee", - "i": 7, - "x": 0.6117840605678454, - "y": 0.1878849191181694 -} -{ - "a": "zee", - "b": "wye", - "i": 8, - "x": 0.5985540091064224, - "y": 0.976181385699006 -} -{ - "a": "hat", - "b": "wye", - "i": 9, - "x": 0.03144187646093577, - "y": 0.7495507603507059 -} -{ - "a": "pan", - "b": "wye", - "i": 10, - "x": 0.5026260055412137, - "y": 0.9526183602969864 -} - - ----------------------------------------------------------------- json yeswrap yesstack -mlr --irs auto --ors lf --jlistwrap --json --jvstack cat ./reg_test/input/line-term-lf-wrap.json -[ -{ - "a": "pan", - "b": "pan", - "i": 1, - "x": 0.3467901443380824, - "y": 0.7268028627434533 -} -,{ - "a": "eks", - "b": "pan", - "i": 2, - "x": 0.7586799647899636, - "y": 0.5221511083334797 -} -,{ - "a": "wye", - "b": "wye", - "i": 3, - "x": 0.20460330576630303, - "y": 0.33831852551664776 -} -,{ - "a": "eks", - "b": "wye", - "i": 4, - "x": 0.38139939387114097, - "y": 0.13418874328430463 -} -,{ - "a": "wye", - "b": "pan", - "i": 5, - "x": 0.5732889198020006, - "y": 0.8636244699032729 -} -,{ - "a": "zee", - "b": "pan", - "i": 6, - "x": 0.5271261600918548, - "y": 0.49322128674835697 -} -,{ - "a": "eks", - "b": "zee", - "i": 7, - "x": 0.6117840605678454, - "y": 0.1878849191181694 -} -,{ - "a": "zee", - "b": "wye", - "i": 8, - "x": 0.5985540091064224, - "y": 0.976181385699006 -} -,{ - "a": "hat", - "b": "wye", - "i": 9, - "x": 0.03144187646093577, - "y": 0.7495507603507059 -} -,{ - "a": "pan", - "b": "wye", - "i": 10, - "x": 0.5026260055412137, - "y": 0.9526183602969864 -} -] - -mlr --irs auto --ors lf --jlistwrap --json --jvstack cat ./reg_test/input/line-term-crlf-wrap.json -[ -{ - "a": "pan", - "b": "pan", - "i": 1, - "x": 0.3467901443380824, - "y": 0.7268028627434533 -} -,{ - "a": "eks", - "b": "pan", - "i": 2, - "x": 0.7586799647899636, - "y": 0.5221511083334797 -} -,{ - "a": "wye", - "b": "wye", - "i": 3, - "x": 0.20460330576630303, - "y": 0.33831852551664776 -} -,{ - "a": "eks", - "b": "wye", - "i": 4, - "x": 0.38139939387114097, - "y": 0.13418874328430463 -} -,{ - "a": "wye", - "b": "pan", - "i": 5, - "x": 0.5732889198020006, - "y": 0.8636244699032729 -} -,{ - "a": "zee", - "b": "pan", - "i": 6, - "x": 0.5271261600918548, - "y": 0.49322128674835697 -} -,{ - "a": "eks", - "b": "zee", - "i": 7, - "x": 0.6117840605678454, - "y": 0.1878849191181694 -} -,{ - "a": "zee", - "b": "wye", - "i": 8, - "x": 0.5985540091064224, - "y": 0.976181385699006 -} -,{ - "a": "hat", - "b": "wye", - "i": 9, - "x": 0.03144187646093577, - "y": 0.7495507603507059 -} -,{ - "a": "pan", - "b": "wye", - "i": 10, - "x": 0.5026260055412137, - "y": 0.9526183602969864 -} -] - -mlr --jlistwrap --json --jvstack cat ./reg_test/input/line-term-lf-wrap.json -[ -{ - "a": "pan", - "b": "pan", - "i": 1, - "x": 0.3467901443380824, - "y": 0.7268028627434533 -} -,{ - "a": "eks", - "b": "pan", - "i": 2, - "x": 0.7586799647899636, - "y": 0.5221511083334797 -} -,{ - "a": "wye", - "b": "wye", - "i": 3, - "x": 0.20460330576630303, - "y": 0.33831852551664776 -} -,{ - "a": "eks", - "b": "wye", - "i": 4, - "x": 0.38139939387114097, - "y": 0.13418874328430463 -} -,{ - "a": "wye", - "b": "pan", - "i": 5, - "x": 0.5732889198020006, - "y": 0.8636244699032729 -} -,{ - "a": "zee", - "b": "pan", - "i": 6, - "x": 0.5271261600918548, - "y": 0.49322128674835697 -} -,{ - "a": "eks", - "b": "zee", - "i": 7, - "x": 0.6117840605678454, - "y": 0.1878849191181694 -} -,{ - "a": "zee", - "b": "wye", - "i": 8, - "x": 0.5985540091064224, - "y": 0.976181385699006 -} -,{ - "a": "hat", - "b": "wye", - "i": 9, - "x": 0.03144187646093577, - "y": 0.7495507603507059 -} -,{ - "a": "pan", - "b": "wye", - "i": 10, - "x": 0.5026260055412137, - "y": 0.9526183602969864 -} -] - -mlr --jlistwrap --json --jvstack cat ./reg_test/input/line-term-crlf-wrap.json -[ -{ - "a": "pan", - "b": "pan", - "i": 1, - "x": 0.3467901443380824, - "y": 0.7268028627434533 -} -,{ - "a": "eks", - "b": "pan", - "i": 2, - "x": 0.7586799647899636, - "y": 0.5221511083334797 -} -,{ - "a": "wye", - "b": "wye", - "i": 3, - "x": 0.20460330576630303, - "y": 0.33831852551664776 -} -,{ - "a": "eks", - "b": "wye", - "i": 4, - "x": 0.38139939387114097, - "y": 0.13418874328430463 -} -,{ - "a": "wye", - "b": "pan", - "i": 5, - "x": 0.5732889198020006, - "y": 0.8636244699032729 -} -,{ - "a": "zee", - "b": "pan", - "i": 6, - "x": 0.5271261600918548, - "y": 0.49322128674835697 -} -,{ - "a": "eks", - "b": "zee", - "i": 7, - "x": 0.6117840605678454, - "y": 0.1878849191181694 -} -,{ - "a": "zee", - "b": "wye", - "i": 8, - "x": 0.5985540091064224, - "y": 0.976181385699006 -} -,{ - "a": "hat", - "b": "wye", - "i": 9, - "x": 0.03144187646093577, - "y": 0.7495507603507059 -} -,{ - "a": "pan", - "b": "wye", - "i": 10, - "x": 0.5026260055412137, - "y": 0.9526183602969864 -} -] - - ----------------------------------------------------------------- json nowrap nostack -mlr --irs auto --ors lf --json cat ./reg_test/input/line-term-lf.json -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } - -mlr --irs auto --ors lf --json cat ./reg_test/input/line-term-crlf.json -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } - -mlr --json cat ./reg_test/input/line-term-lf.json -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } - -mlr --json cat ./reg_test/input/line-term-crlf.json -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } - - ----------------------------------------------------------------- json yeswrap nostack -mlr --irs auto --ors lf --jlistwrap --json cat ./reg_test/input/line-term-lf-wrap.json -[ -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -,{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -,{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -,{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -,{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -,{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -,{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -,{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -,{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -,{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } -] - -mlr --irs auto --ors lf --jlistwrap --json cat ./reg_test/input/line-term-crlf-wrap.json -[ -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -,{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -,{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -,{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -,{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -,{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -,{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -,{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -,{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -,{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } -] - -mlr --jlistwrap --json cat ./reg_test/input/line-term-lf-wrap.json -[ -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -,{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -,{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -,{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -,{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -,{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -,{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -,{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -,{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -,{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } -] - -mlr --jlistwrap --json cat ./reg_test/input/line-term-crlf-wrap.json -[ -{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } -,{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } -,{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } -,{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } -,{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } -,{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } -,{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } -,{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } -,{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } -,{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } -] - - ----------------------------------------------------------------- json nowrap yesstack -mlr --irs auto --ors lf --json --jvstack cat ./reg_test/input/line-term-lf.json -{ - "a": "pan", - "b": "pan", - "i": 1, - "x": 0.3467901443380824, - "y": 0.7268028627434533 -} -{ - "a": "eks", - "b": "pan", - "i": 2, - "x": 0.7586799647899636, - "y": 0.5221511083334797 -} -{ - "a": "wye", - "b": "wye", - "i": 3, - "x": 0.20460330576630303, - "y": 0.33831852551664776 -} -{ - "a": "eks", - "b": "wye", - "i": 4, - "x": 0.38139939387114097, - "y": 0.13418874328430463 -} -{ - "a": "wye", - "b": "pan", - "i": 5, - "x": 0.5732889198020006, - "y": 0.8636244699032729 -} -{ - "a": "zee", - "b": "pan", - "i": 6, - "x": 0.5271261600918548, - "y": 0.49322128674835697 -} -{ - "a": "eks", - "b": "zee", - "i": 7, - "x": 0.6117840605678454, - "y": 0.1878849191181694 -} -{ - "a": "zee", - "b": "wye", - "i": 8, - "x": 0.5985540091064224, - "y": 0.976181385699006 -} -{ - "a": "hat", - "b": "wye", - "i": 9, - "x": 0.03144187646093577, - "y": 0.7495507603507059 -} -{ - "a": "pan", - "b": "wye", - "i": 10, - "x": 0.5026260055412137, - "y": 0.9526183602969864 -} - -mlr --irs auto --ors lf --json --jvstack cat ./reg_test/input/line-term-crlf.json -{ - "a": "pan", - "b": "pan", - "i": 1, - "x": 0.3467901443380824, - "y": 0.7268028627434533 -} -{ - "a": "eks", - "b": "pan", - "i": 2, - "x": 0.7586799647899636, - "y": 0.5221511083334797 -} -{ - "a": "wye", - "b": "wye", - "i": 3, - "x": 0.20460330576630303, - "y": 0.33831852551664776 -} -{ - "a": "eks", - "b": "wye", - "i": 4, - "x": 0.38139939387114097, - "y": 0.13418874328430463 -} -{ - "a": "wye", - "b": "pan", - "i": 5, - "x": 0.5732889198020006, - "y": 0.8636244699032729 -} -{ - "a": "zee", - "b": "pan", - "i": 6, - "x": 0.5271261600918548, - "y": 0.49322128674835697 -} -{ - "a": "eks", - "b": "zee", - "i": 7, - "x": 0.6117840605678454, - "y": 0.1878849191181694 -} -{ - "a": "zee", - "b": "wye", - "i": 8, - "x": 0.5985540091064224, - "y": 0.976181385699006 -} -{ - "a": "hat", - "b": "wye", - "i": 9, - "x": 0.03144187646093577, - "y": 0.7495507603507059 -} -{ - "a": "pan", - "b": "wye", - "i": 10, - "x": 0.5026260055412137, - "y": 0.9526183602969864 -} - -mlr --json --jvstack cat ./reg_test/input/line-term-lf.json -{ - "a": "pan", - "b": "pan", - "i": 1, - "x": 0.3467901443380824, - "y": 0.7268028627434533 -} -{ - "a": "eks", - "b": "pan", - "i": 2, - "x": 0.7586799647899636, - "y": 0.5221511083334797 -} -{ - "a": "wye", - "b": "wye", - "i": 3, - "x": 0.20460330576630303, - "y": 0.33831852551664776 -} -{ - "a": "eks", - "b": "wye", - "i": 4, - "x": 0.38139939387114097, - "y": 0.13418874328430463 -} -{ - "a": "wye", - "b": "pan", - "i": 5, - "x": 0.5732889198020006, - "y": 0.8636244699032729 -} -{ - "a": "zee", - "b": "pan", - "i": 6, - "x": 0.5271261600918548, - "y": 0.49322128674835697 -} -{ - "a": "eks", - "b": "zee", - "i": 7, - "x": 0.6117840605678454, - "y": 0.1878849191181694 -} -{ - "a": "zee", - "b": "wye", - "i": 8, - "x": 0.5985540091064224, - "y": 0.976181385699006 -} -{ - "a": "hat", - "b": "wye", - "i": 9, - "x": 0.03144187646093577, - "y": 0.7495507603507059 -} -{ - "a": "pan", - "b": "wye", - "i": 10, - "x": 0.5026260055412137, - "y": 0.9526183602969864 -} - -mlr --json --jvstack cat ./reg_test/input/line-term-crlf.json -{ - "a": "pan", - "b": "pan", - "i": 1, - "x": 0.3467901443380824, - "y": 0.7268028627434533 -} -{ - "a": "eks", - "b": "pan", - "i": 2, - "x": 0.7586799647899636, - "y": 0.5221511083334797 -} -{ - "a": "wye", - "b": "wye", - "i": 3, - "x": 0.20460330576630303, - "y": 0.33831852551664776 -} -{ - "a": "eks", - "b": "wye", - "i": 4, - "x": 0.38139939387114097, - "y": 0.13418874328430463 -} -{ - "a": "wye", - "b": "pan", - "i": 5, - "x": 0.5732889198020006, - "y": 0.8636244699032729 -} -{ - "a": "zee", - "b": "pan", - "i": 6, - "x": 0.5271261600918548, - "y": 0.49322128674835697 -} -{ - "a": "eks", - "b": "zee", - "i": 7, - "x": 0.6117840605678454, - "y": 0.1878849191181694 -} -{ - "a": "zee", - "b": "wye", - "i": 8, - "x": 0.5985540091064224, - "y": 0.976181385699006 -} -{ - "a": "hat", - "b": "wye", - "i": 9, - "x": 0.03144187646093577, - "y": 0.7495507603507059 -} -{ - "a": "pan", - "b": "wye", - "i": 10, - "x": 0.5026260055412137, - "y": 0.9526183602969864 -} - - ----------------------------------------------------------------- json yeswrap yesstack -mlr --irs auto --ors lf --jlistwrap --json --jvstack cat ./reg_test/input/line-term-lf-wrap.json -[ -{ - "a": "pan", - "b": "pan", - "i": 1, - "x": 0.3467901443380824, - "y": 0.7268028627434533 -} -,{ - "a": "eks", - "b": "pan", - "i": 2, - "x": 0.7586799647899636, - "y": 0.5221511083334797 -} -,{ - "a": "wye", - "b": "wye", - "i": 3, - "x": 0.20460330576630303, - "y": 0.33831852551664776 -} -,{ - "a": "eks", - "b": "wye", - "i": 4, - "x": 0.38139939387114097, - "y": 0.13418874328430463 -} -,{ - "a": "wye", - "b": "pan", - "i": 5, - "x": 0.5732889198020006, - "y": 0.8636244699032729 -} -,{ - "a": "zee", - "b": "pan", - "i": 6, - "x": 0.5271261600918548, - "y": 0.49322128674835697 -} -,{ - "a": "eks", - "b": "zee", - "i": 7, - "x": 0.6117840605678454, - "y": 0.1878849191181694 -} -,{ - "a": "zee", - "b": "wye", - "i": 8, - "x": 0.5985540091064224, - "y": 0.976181385699006 -} -,{ - "a": "hat", - "b": "wye", - "i": 9, - "x": 0.03144187646093577, - "y": 0.7495507603507059 -} -,{ - "a": "pan", - "b": "wye", - "i": 10, - "x": 0.5026260055412137, - "y": 0.9526183602969864 -} -] - -mlr --irs auto --ors lf --jlistwrap --json --jvstack cat ./reg_test/input/line-term-crlf-wrap.json -[ -{ - "a": "pan", - "b": "pan", - "i": 1, - "x": 0.3467901443380824, - "y": 0.7268028627434533 -} -,{ - "a": "eks", - "b": "pan", - "i": 2, - "x": 0.7586799647899636, - "y": 0.5221511083334797 -} -,{ - "a": "wye", - "b": "wye", - "i": 3, - "x": 0.20460330576630303, - "y": 0.33831852551664776 -} -,{ - "a": "eks", - "b": "wye", - "i": 4, - "x": 0.38139939387114097, - "y": 0.13418874328430463 -} -,{ - "a": "wye", - "b": "pan", - "i": 5, - "x": 0.5732889198020006, - "y": 0.8636244699032729 -} -,{ - "a": "zee", - "b": "pan", - "i": 6, - "x": 0.5271261600918548, - "y": 0.49322128674835697 -} -,{ - "a": "eks", - "b": "zee", - "i": 7, - "x": 0.6117840605678454, - "y": 0.1878849191181694 -} -,{ - "a": "zee", - "b": "wye", - "i": 8, - "x": 0.5985540091064224, - "y": 0.976181385699006 -} -,{ - "a": "hat", - "b": "wye", - "i": 9, - "x": 0.03144187646093577, - "y": 0.7495507603507059 -} -,{ - "a": "pan", - "b": "wye", - "i": 10, - "x": 0.5026260055412137, - "y": 0.9526183602969864 -} -] - -mlr --jlistwrap --json --jvstack cat ./reg_test/input/line-term-lf-wrap.json -[ -{ - "a": "pan", - "b": "pan", - "i": 1, - "x": 0.3467901443380824, - "y": 0.7268028627434533 -} -,{ - "a": "eks", - "b": "pan", - "i": 2, - "x": 0.7586799647899636, - "y": 0.5221511083334797 -} -,{ - "a": "wye", - "b": "wye", - "i": 3, - "x": 0.20460330576630303, - "y": 0.33831852551664776 -} -,{ - "a": "eks", - "b": "wye", - "i": 4, - "x": 0.38139939387114097, - "y": 0.13418874328430463 -} -,{ - "a": "wye", - "b": "pan", - "i": 5, - "x": 0.5732889198020006, - "y": 0.8636244699032729 -} -,{ - "a": "zee", - "b": "pan", - "i": 6, - "x": 0.5271261600918548, - "y": 0.49322128674835697 -} -,{ - "a": "eks", - "b": "zee", - "i": 7, - "x": 0.6117840605678454, - "y": 0.1878849191181694 -} -,{ - "a": "zee", - "b": "wye", - "i": 8, - "x": 0.5985540091064224, - "y": 0.976181385699006 -} -,{ - "a": "hat", - "b": "wye", - "i": 9, - "x": 0.03144187646093577, - "y": 0.7495507603507059 -} -,{ - "a": "pan", - "b": "wye", - "i": 10, - "x": 0.5026260055412137, - "y": 0.9526183602969864 -} -] - -mlr --jlistwrap --json --jvstack cat ./reg_test/input/line-term-crlf-wrap.json -[ -{ - "a": "pan", - "b": "pan", - "i": 1, - "x": 0.3467901443380824, - "y": 0.7268028627434533 -} -,{ - "a": "eks", - "b": "pan", - "i": 2, - "x": 0.7586799647899636, - "y": 0.5221511083334797 -} -,{ - "a": "wye", - "b": "wye", - "i": 3, - "x": 0.20460330576630303, - "y": 0.33831852551664776 -} -,{ - "a": "eks", - "b": "wye", - "i": 4, - "x": 0.38139939387114097, - "y": 0.13418874328430463 -} -,{ - "a": "wye", - "b": "pan", - "i": 5, - "x": 0.5732889198020006, - "y": 0.8636244699032729 -} -,{ - "a": "zee", - "b": "pan", - "i": 6, - "x": 0.5271261600918548, - "y": 0.49322128674835697 -} -,{ - "a": "eks", - "b": "zee", - "i": 7, - "x": 0.6117840605678454, - "y": 0.1878849191181694 -} -,{ - "a": "zee", - "b": "wye", - "i": 8, - "x": 0.5985540091064224, - "y": 0.976181385699006 -} -,{ - "a": "hat", - "b": "wye", - "i": 9, - "x": 0.03144187646093577, - "y": 0.7495507603507059 -} -,{ - "a": "pan", - "b": "wye", - "i": 10, - "x": 0.5026260055412137, - "y": 0.9526183602969864 -} -] - - ================================================================ USER-DEFINED FUNCTIONS AND SUBROUTINES @@ -58802,6 +52395,6413 @@ i 10 x 0.5026260055412137 y 0.9526183602969864 + +================================================================ +NUMBER FORMATTING + +mlr --opprint stats1 -a sum -f x ./reg_test/input/ofmt.dat +x_sum +6 + +mlr --ofmt %.3lf --opprint stats1 -a sum -f x ./reg_test/input/ofmt.dat +x_sum +6 + +mlr --opprint --ofmt %.3lf stats1 -a sum -f x ./reg_test/input/ofmt.dat +x_sum +6 + + +================================================================ +IMPLICIT-HEADER-CSV INPUT + +mlr --irs crlf --icsvlite --ifs , --opprint cut -x -f b/ ./reg_test/input/multi-sep.csv-crlf +a/ i/ x/ y/ +wye/ 0/ 0.641593543645736508/ 0.262688053894177098 +eks/ 1/ 0.827614412562742041/ 0.715431942006308552 +zee/ 2/ 0.923068348748175560/ 0.009737410587136359 +zee/ 3/ 0.000047786161325772/ 0.803142013402256216 +zee/ 4/ 0.676537984365847889/ 0.573903236805416328 + +mlr --irs crlf --implicit-csv-header --icsvlite --ifs , --opprint cut -x -f 2 ./reg_test/input/multi-sep.csv-crlf +1 3 4 5 +a/ i/ x/ y/ +wye/ 0/ 0.641593543645736508/ 0.262688053894177098 +eks/ 1/ 0.827614412562742041/ 0.715431942006308552 +zee/ 2/ 0.923068348748175560/ 0.009737410587136359 +zee/ 3/ 0.000047786161325772/ 0.803142013402256216 +zee/ 4/ 0.676537984365847889/ 0.573903236805416328 + +mlr --irs crlf --icsvlite --ifs /, --opprint cut -x -f b ./reg_test/input/multi-sep.csv-crlf +a i x y/ +wye 0 0.641593543645736508 0.262688053894177098 +eks 1 0.827614412562742041 0.715431942006308552 +zee 2 0.923068348748175560 0.009737410587136359 +zee 3 0.000047786161325772 0.803142013402256216 +zee 4 0.676537984365847889 0.573903236805416328 + +mlr --irs crlf --implicit-csv-header --icsvlite --ifs /, --opprint cut -x -f 2 ./reg_test/input/multi-sep.csv-crlf +1 3 4 5 +a i x y/ +wye 0 0.641593543645736508 0.262688053894177098 +eks 1 0.827614412562742041 0.715431942006308552 +zee 2 0.923068348748175560 0.009737410587136359 +zee 3 0.000047786161325772 0.803142013402256216 +zee 4 0.676537984365847889 0.573903236805416328 + +mlr --icsv --ifs , --opprint cut -x -f b/ ./reg_test/input/multi-sep.csv-crlf +a/ i/ x/ y/ +wye/ 0/ 0.641593543645736508/ 0.262688053894177098 +eks/ 1/ 0.827614412562742041/ 0.715431942006308552 +zee/ 2/ 0.923068348748175560/ 0.009737410587136359 +zee/ 3/ 0.000047786161325772/ 0.803142013402256216 +zee/ 4/ 0.676537984365847889/ 0.573903236805416328 + +mlr --implicit-csv-header --icsv --ifs , --opprint cut -x -f 2 ./reg_test/input/multi-sep.csv-crlf +1 3 4 5 +a/ i/ x/ y/ +wye/ 0/ 0.641593543645736508/ 0.262688053894177098 +eks/ 1/ 0.827614412562742041/ 0.715431942006308552 +zee/ 2/ 0.923068348748175560/ 0.009737410587136359 +zee/ 3/ 0.000047786161325772/ 0.803142013402256216 +zee/ 4/ 0.676537984365847889/ 0.573903236805416328 + +mlr --icsv --ifs /, --opprint cut -x -f b ./reg_test/input/multi-sep.csv-crlf +a i x y/ +wye 0 0.641593543645736508 0.262688053894177098 +eks 1 0.827614412562742041 0.715431942006308552 +zee 2 0.923068348748175560 0.009737410587136359 +zee 3 0.000047786161325772 0.803142013402256216 +zee 4 0.676537984365847889 0.573903236805416328 + +mlr --implicit-csv-header --icsv --ifs /, --opprint cut -x -f 2 ./reg_test/input/multi-sep.csv-crlf +1 3 4 5 +a i x y/ +wye 0 0.641593543645736508 0.262688053894177098 +eks 1 0.827614412562742041 0.715431942006308552 +zee 2 0.923068348748175560 0.009737410587136359 +zee 3 0.000047786161325772 0.803142013402256216 +zee 4 0.676537984365847889 0.573903236805416328 + +mlr --csv -N reorder -f 1,3,2,5,4 ./reg_test/input/multi-sep.csv-crlf +a/,i/,b/,y/,x/ +wye/,0/,eks/,0.262688053894177098,0.641593543645736508/ +eks/,1/,zee/,0.715431942006308552,0.827614412562742041/ +zee/,2/,zee/,0.009737410587136359,0.923068348748175560/ +zee/,3/,pan/,0.803142013402256216,0.000047786161325772/ +zee/,4/,hat/,0.573903236805416328,0.676537984365847889/ + +mlr --csv -N reorder -f 5,4,3,2,1 ./reg_test/input/multi-sep.csv-crlf +y/,x/,i/,b/,a/ +0.262688053894177098,0.641593543645736508/,0/,eks/,wye/ +0.715431942006308552,0.827614412562742041/,1/,zee/,eks/ +0.009737410587136359,0.923068348748175560/,2/,zee/,zee/ +0.803142013402256216,0.000047786161325772/,3/,pan/,zee/ +0.573903236805416328,0.676537984365847889/,4/,hat/,zee/ + + +================================================================ +HET-CSV INPUT + +mlr --icsvlite --odkvp cat ./reg_test/input/a.csv +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --icsvlite --odkvp cat ./reg_test/input/b.csv +d=5,e=6,f=7 + +mlr --icsvlite --odkvp cat ./reg_test/input/c.csv +a=1,b=2,c=3 +a=4,b=5,c=6 +a=7,b=8,c=9 + +mlr --icsvlite --odkvp cat ./reg_test/input/d.csv +h=3,i=4,j=5 +m=8,n=9,o=10 + +mlr --icsvlite --odkvp cat ./reg_test/input/e.csv +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --icsvlite --odkvp cat ./reg_test/input/f.csv + +mlr --icsvlite --odkvp cat ./reg_test/input/g.csv + +mlr --icsvlite --odkvp cat ./reg_test/input/a.csv ./reg_test/input/a.csv +a=1,b=2,c=3 +a=4,b=5,c=6 +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --icsvlite --odkvp cat ./reg_test/input/b.csv ./reg_test/input/b.csv +d=5,e=6,f=7 +d=5,e=6,f=7 + +mlr --icsvlite --odkvp cat ./reg_test/input/c.csv ./reg_test/input/c.csv +a=1,b=2,c=3 +a=4,b=5,c=6 +a=7,b=8,c=9 +a=1,b=2,c=3 +a=4,b=5,c=6 +a=7,b=8,c=9 + +mlr --icsvlite --odkvp cat ./reg_test/input/d.csv ./reg_test/input/d.csv +h=3,i=4,j=5 +m=8,n=9,o=10 +h=3,i=4,j=5 +m=8,n=9,o=10 + +mlr --icsvlite --odkvp cat ./reg_test/input/e.csv ./reg_test/input/e.csv +a=1,b=2,c=3 +a=4,b=5,c=6 +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --icsvlite --odkvp cat ./reg_test/input/f.csv ./reg_test/input/f.csv + +mlr --icsvlite --odkvp cat ./reg_test/input/g.csv ./reg_test/input/g.csv + +mlr --icsvlite --odkvp cat ./reg_test/input/a.csv ./reg_test/input/b.csv +a=1,b=2,c=3 +a=4,b=5,c=6 +d=5,e=6,f=7 + +mlr --icsvlite --odkvp cat ./reg_test/input/b.csv ./reg_test/input/c.csv +d=5,e=6,f=7 +a=1,b=2,c=3 +a=4,b=5,c=6 +a=7,b=8,c=9 + +mlr --icsvlite --odkvp cat ./reg_test/input/c.csv ./reg_test/input/d.csv +a=1,b=2,c=3 +a=4,b=5,c=6 +a=7,b=8,c=9 +h=3,i=4,j=5 +m=8,n=9,o=10 + +mlr --icsvlite --odkvp cat ./reg_test/input/d.csv ./reg_test/input/e.csv +h=3,i=4,j=5 +m=8,n=9,o=10 +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --icsvlite --odkvp cat ./reg_test/input/e.csv ./reg_test/input/f.csv +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --icsvlite --odkvp cat ./reg_test/input/f.csv ./reg_test/input/g.csv + +mlr --icsvlite --odkvp cat ./reg_test/input/a.csv ./reg_test/input/b.csv ./reg_test/input/c.csv ./reg_test/input/d.csv ./reg_test/input/e.csv ./reg_test/input/f.csv ./reg_test/input/g.csv +a=1,b=2,c=3 +a=4,b=5,c=6 +d=5,e=6,f=7 +a=1,b=2,c=3 +a=4,b=5,c=6 +a=7,b=8,c=9 +h=3,i=4,j=5 +m=8,n=9,o=10 +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --icsvlite --odkvp tac ./reg_test/input/het.csv +resource=/some/other/path,loadsec=0.97,ok=false +record_count=150,resource=/path/to/second/file +resource=/path/to/second/file,loadsec=0.32,ok=true +record_count=100,resource=/path/to/file +resource=/path/to/file,loadsec=0.45,ok=true + +mlr --headerless-csv-output --csvlite tac ./reg_test/input/a.csv +4,5,6 +1,2,3 + +mlr --headerless-csv-output --csvlite tac ./reg_test/input/c.csv +7,8,9 +4,5,6 +1,2,3 + +mlr --headerless-csv-output --csvlite tac ./reg_test/input/a.csv ./reg_test/input/c.csv +7,8,9 +4,5,6 +1,2,3 +4,5,6 +1,2,3 + +mlr --headerless-csv-output --csvlite tac ./reg_test/input/het.csv +/some/other/path,0.97,false + +150,/path/to/second/file + +/path/to/second/file,0.32,true + +100,/path/to/file + +/path/to/file,0.45,true + +mlr --headerless-csv-output --csvlite group-like ./reg_test/input/het.csv +/path/to/file,0.45,true +/path/to/second/file,0.32,true +/some/other/path,0.97,false + +100,/path/to/file +150,/path/to/second/file + + +================================================================ +HET-PPRINT INPUT + +mlr --ipprint --odkvp cat ./reg_test/input/a.pprint +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --ipprint --odkvp cat ./reg_test/input/b.pprint +d=5,e=6,f=7 + +mlr --ipprint --odkvp cat ./reg_test/input/c.pprint +a=1,b=2,c=3 +a=4,b=5,c=6 +a=7,b=8,c=9 + +mlr --ipprint --odkvp cat ./reg_test/input/d.pprint +h=3,i=4,j=5 +m=8,n=9,o=10 + +mlr --ipprint --odkvp cat ./reg_test/input/e.pprint +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --ipprint --odkvp cat ./reg_test/input/f.pprint + +mlr --ipprint --odkvp cat ./reg_test/input/g.pprint + +mlr --ipprint --odkvp cat ./reg_test/input/a.pprint ./reg_test/input/a.pprint +a=1,b=2,c=3 +a=4,b=5,c=6 +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --ipprint --odkvp cat ./reg_test/input/b.pprint ./reg_test/input/b.pprint +d=5,e=6,f=7 +d=5,e=6,f=7 + +mlr --ipprint --odkvp cat ./reg_test/input/c.pprint ./reg_test/input/c.pprint +a=1,b=2,c=3 +a=4,b=5,c=6 +a=7,b=8,c=9 +a=1,b=2,c=3 +a=4,b=5,c=6 +a=7,b=8,c=9 + +mlr --ipprint --odkvp cat ./reg_test/input/d.pprint ./reg_test/input/d.pprint +h=3,i=4,j=5 +m=8,n=9,o=10 +h=3,i=4,j=5 +m=8,n=9,o=10 + +mlr --ipprint --odkvp cat ./reg_test/input/e.pprint ./reg_test/input/e.pprint +a=1,b=2,c=3 +a=4,b=5,c=6 +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --ipprint --odkvp cat ./reg_test/input/f.pprint ./reg_test/input/f.pprint + +mlr --ipprint --odkvp cat ./reg_test/input/g.pprint ./reg_test/input/g.pprint + +mlr --ipprint --odkvp cat ./reg_test/input/a.pprint ./reg_test/input/b.pprint +a=1,b=2,c=3 +a=4,b=5,c=6 +d=5,e=6,f=7 + +mlr --ipprint --odkvp cat ./reg_test/input/b.pprint ./reg_test/input/c.pprint +d=5,e=6,f=7 +a=1,b=2,c=3 +a=4,b=5,c=6 +a=7,b=8,c=9 + +mlr --ipprint --odkvp cat ./reg_test/input/c.pprint ./reg_test/input/d.pprint +a=1,b=2,c=3 +a=4,b=5,c=6 +a=7,b=8,c=9 +h=3,i=4,j=5 +m=8,n=9,o=10 + +mlr --ipprint --odkvp cat ./reg_test/input/d.pprint ./reg_test/input/e.pprint +h=3,i=4,j=5 +m=8,n=9,o=10 +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --ipprint --odkvp cat ./reg_test/input/e.pprint ./reg_test/input/f.pprint +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --ipprint --odkvp cat ./reg_test/input/f.pprint ./reg_test/input/g.pprint + +mlr --ipprint --odkvp cat ./reg_test/input/a.pprint ./reg_test/input/b.pprint ./reg_test/input/c.pprint ./reg_test/input/d.pprint ./reg_test/input/e.pprint ./reg_test/input/f.pprint ./reg_test/input/g.pprint +a=1,b=2,c=3 +a=4,b=5,c=6 +d=5,e=6,f=7 +a=1,b=2,c=3 +a=4,b=5,c=6 +a=7,b=8,c=9 +h=3,i=4,j=5 +m=8,n=9,o=10 +a=1,b=2,c=3 +a=4,b=5,c=6 + + +================================================================ +NULL-FIELD INPUT + +mlr --icsvlite --odkvp cat ./reg_test/input/null-fields.csv +a=1,b=2,c=3,d=4,e=5 +a=6,b=,c=,d=,e=10 +a=,b=,c=,d=11,e=12 +a=13,b=14,c=,d=,e= +a=,b=,c=,d=,e= + +mlr --inidx --ifs comma --odkvp cat ./reg_test/input/null-fields.nidx +1=a,2=b,3=c,4=d,5=e +1=f,2=,3=,4=,5=g +1=,2=,3=,4=h,5=i +1=j,2=k,3=,4=,5= +1=,2=,3=,4=,5= + +mlr --idkvp --oxtab cat ./reg_test/input/missings.dkvp +a 1 +b 2 +c 3 +d 4 +e 5 +f 6 + +1 a +b +x 4 +c 3 +5 d +6 e +7 f + +1 a +b +x 4 +c 3 +5 d +6 e +f 6 + +mlr --oxtab stats1 -a sum,min,max,antimode,mode -f x ./reg_test/input/nullvals.dkvp +x_sum 9 +x_min 1 +x_max 5 +x_antimode 1 +x_mode 1 + +mlr --oxtab stats1 -a sum,min,max,antimode,mode -f y ./reg_test/input/nullvals.dkvp +y_sum 12 +y_min 2 +y_max 6 +y_antimode 2 +y_mode 2 + +mlr --oxtab stats1 -a sum,min,max,antimode,mode -f z ./reg_test/input/nullvals.dkvp +z_sum 0 +z_min +z_max +z_antimode +z_mode + +mlr --oxtab stats1 -a sum,min,max,antimode,mode -f x,y,z ./reg_test/input/nullvals.dkvp +x_sum 9 +x_min 1 +x_max 5 +x_antimode 1 +x_mode 1 +y_sum 12 +y_min 2 +y_max 6 +y_antimode 2 +y_mode 2 +z_sum 0 +z_min +z_max +z_antimode +z_mode + +mlr --oxtab stats1 -a sum,min,max,antimode,mode -f x -g a ./reg_test/input/nullvals.dkvp +a b +x_sum 9 +x_min 1 +x_max 5 +x_antimode 1 +x_mode 1 + +mlr --oxtab stats1 -a sum,min,max,antimode,mode -f y -g a ./reg_test/input/nullvals.dkvp +a b +y_sum 12 +y_min 2 +y_max 6 +y_antimode 2 +y_mode 2 + +mlr --oxtab stats1 -a sum,min,max,antimode,mode -f z -g a ./reg_test/input/nullvals.dkvp +a b +z_sum 0 +z_min +z_max +z_antimode +z_mode + +mlr --oxtab stats1 -a sum,min,max,antimode,mode -f x,y,z -g a ./reg_test/input/nullvals.dkvp +a b +x_sum 9 +x_min 1 +x_max 5 +x_antimode 1 +x_mode 1 +y_sum 12 +y_min 2 +y_max 6 +y_antimode 2 +y_mode 2 +z_sum 0 +z_min +z_max +z_antimode +z_mode + +mlr --opprint merge-fields -a sum,min,max,antimode,mode -f x,y,z -o xyz ./reg_test/input/nullvals.dkvp +a xyz_sum xyz_min xyz_max xyz_antimode xyz_mode +b 3 1 2 1 1 +b 7 3 4 3 3 +b 5 5 5 5 5 +b 6 6 6 6 6 +b 0 - - - - + +mlr --opprint merge-fields -a sum,min,max,antimode,mode -r x,y,z -o xyz ./reg_test/input/nullvals.dkvp +a xyz_sum xyz_min xyz_max xyz_antimode xyz_mode +b 3 1 2 1 1 +b 7 3 4 3 3 +b 5 5 5 5 5 +b 6 6 6 6 6 +b 0 - - - - + +mlr --opprint merge-fields -a sum,min,max,antimode,mode -c x,y,z ./reg_test/input/nullvals.dkvp +a _sum _min _max _antimode _mode +b 3 1 2 1 1 +b 7 3 4 3 3 +b 5 5 5 5 5 +b 6 6 6 6 6 +b 0 - - - - + +mlr --oxtab stats2 -a cov -f x,y ./reg_test/input/nullvals.dkvp +x_y_cov 2.000000 + +mlr --oxtab stats2 -a cov -f x,z ./reg_test/input/nullvals.dkvp + +mlr --oxtab stats2 -a cov -f y,z ./reg_test/input/nullvals.dkvp + +mlr --oxtab stats2 -a cov -f x,y -g a ./reg_test/input/nullvals.dkvp +a b +x_y_cov 2.000000 + +mlr --oxtab stats2 -a cov -f x,z -g a ./reg_test/input/nullvals.dkvp +a b + +mlr --oxtab stats2 -a cov -f y,z -g a ./reg_test/input/nullvals.dkvp +a b + +mlr --opprint top -n 5 -f x ./reg_test/input/nullvals.dkvp +top_idx x_top +1 5 +2 3 +3 1 +4 - +5 - + +mlr --opprint top -n 5 -f y ./reg_test/input/nullvals.dkvp +top_idx y_top +1 6 +2 4 +3 2 +4 - +5 - + +mlr --opprint top -n 5 -f z ./reg_test/input/nullvals.dkvp +top_idx z_top +1 - +2 - +3 - +4 - +5 - + +mlr --opprint top -n 5 -f x,y,z ./reg_test/input/nullvals.dkvp +top_idx x_top y_top z_top +1 5 6 - +2 3 4 - +3 1 2 - +4 - - - +5 - - - + +mlr --opprint top -n 5 -f x -g a ./reg_test/input/nullvals.dkvp +a top_idx x_top +b 1 5 +b 2 3 +b 3 1 +b 4 - +b 5 - + +mlr --opprint top -n 5 -f y -g a ./reg_test/input/nullvals.dkvp +a top_idx y_top +b 1 6 +b 2 4 +b 3 2 +b 4 - +b 5 - + +mlr --opprint top -n 5 -f z -g a ./reg_test/input/nullvals.dkvp +a top_idx z_top +b 1 - +b 2 - +b 3 - +b 4 - +b 5 - + +mlr --opprint top -n 5 -f x,y,z -g a ./reg_test/input/nullvals.dkvp +a top_idx x_top y_top z_top +b 1 5 6 - +b 2 3 4 - +b 3 1 2 - +b 4 - - - +b 5 - - - + +mlr --opprint top -a -n 5 -f x ./reg_test/input/nullvals.dkvp +a x y z +b 5 - - +b 3 4 - +b 1 2 - + +mlr --opprint top -a -n 5 -f y ./reg_test/input/nullvals.dkvp +a x y z +b - 6 - +b 3 4 - +b 1 2 - + +mlr --opprint top -a -n 5 -f z ./reg_test/input/nullvals.dkvp + +mlr --opprint top -a -n 5 -f x -g a ./reg_test/input/nullvals.dkvp +a x y z +b 5 - - +b 3 4 - +b 1 2 - + +mlr --opprint top -a -n 5 -f y -g a ./reg_test/input/nullvals.dkvp +a x y z +b - 6 - +b 3 4 - +b 1 2 - + +mlr --opprint top -a -n 5 -f z -g a ./reg_test/input/nullvals.dkvp + +mlr --opprint top -n 5 -f x -o foo ./reg_test/input/nullvals.dkvp +foo x_top +1 5 +2 3 +3 1 +4 - +5 - + +mlr --opprint top -n 5 -f x -g a -o foo ./reg_test/input/nullvals.dkvp +a foo x_top +b 1 5 +b 2 3 +b 3 1 +b 4 - +b 5 - + +mlr --opprint top -a -n 5 -f x -o foo ./reg_test/input/nullvals.dkvp +a x y z +b 5 - - +b 3 4 - +b 1 2 - + +mlr --opprint top -a -n 5 -f z -o foo -g a ./reg_test/input/nullvals.dkvp + +mlr --opprint step -a counter,rsum -f x ./reg_test/input/nullvals.dkvp +a x y z x_counter x_rsum +b 1 2 - 1 1 +b 3 4 - 2 4 +b 5 - - 3 9 +b - 6 - - - +b - - - - - + +mlr --opprint step -a counter,rsum -f y ./reg_test/input/nullvals.dkvp +a x y z y_counter y_rsum +b 1 2 - 1 2 +b 3 4 - 2 6 +b 5 - - - - +b - 6 - 3 12 +b - - - - - + +mlr --opprint step -a counter,rsum -f z ./reg_test/input/nullvals.dkvp +a x y z z_counter z_rsum +b 1 2 - - - +b 3 4 - - - +b 5 - - - - +b - 6 - - - +b - - - - - + +mlr --opprint step -a counter,rsum -f x,y,z ./reg_test/input/nullvals.dkvp +a x y z x_counter x_rsum y_counter y_rsum z_counter z_rsum +b 1 2 - 1 1 1 2 - - +b 3 4 - 2 4 2 6 - - +b 5 - - 3 9 - - - - +b - 6 - - - 3 12 - - +b - - - - - - - - - + +mlr --opprint step -a counter,rsum -f x -g a ./reg_test/input/nullvals.dkvp +a x y z x_counter x_rsum +b 1 2 - 1 1 +b 3 4 - 2 4 +b 5 - - 3 9 +b - 6 - - - +b - - - - - + +mlr --opprint step -a counter,rsum -f y -g a ./reg_test/input/nullvals.dkvp +a x y z y_counter y_rsum +b 1 2 - 1 2 +b 3 4 - 2 6 +b 5 - - - - +b - 6 - 3 12 +b - - - - - + +mlr --opprint step -a counter,rsum -f z -g a ./reg_test/input/nullvals.dkvp +a x y z z_counter z_rsum +b 1 2 - - - +b 3 4 - - - +b 5 - - - - +b - 6 - - - +b - - - - - + +mlr --opprint step -a counter,rsum -f x,y,z -g a ./reg_test/input/nullvals.dkvp +a x y z x_counter x_rsum y_counter y_rsum z_counter z_rsum +b 1 2 - 1 1 1 2 - - +b 3 4 - 2 4 2 6 - - +b 5 - - 3 9 - - - - +b - 6 - - - 3 12 - - +b - - - - - - - - - + + +================================================================ +SPACE-PADDING + +mlr --idkvp --odkvp --ifs space --repifs cat ./reg_test/input/space-pad.dkvp +a=1,b=2 +c=3 + +mlr --inidx --odkvp --ifs space --repifs cat ./reg_test/input/space-pad.nidx +1=a,2=b,3=c +1=d,2=e,3=f + +mlr --icsvlite --odkvp --ifs space --repifs cat ./reg_test/input/space-pad.pprint +a=1,b=2,c=3 + + +================================================================ +DOUBLE PS + +mlr --opprint cat ./reg_test/input/double-ps.dkvp +a b c +pan wy.e 3 +pan wy=e 3 + + +================================================================ +MISSING FINAL LF + +mlr --csvlite cat ./reg_test/input/truncated.csv +a,b,c +1,2,3 +4,5,6 +7,8,9 + +mlr --dkvp cat ./reg_test/input/truncated.dkvp +a=1,b=2 +c=3 + +mlr --nidx cat ./reg_test/input/truncated.nidx +1 2 3 +4 5 + +mlr --pprint cat ./reg_test/input/truncated.pprint +a b c +1 2 3 +4 5 6 +7 8 9 + +mlr --xtab cat ./reg_test/input/truncated.xtab-crlf +a 1 +b 2 +c 3 + +d 4 +e 5 + + +================================================================ +UTF-8 alignment + +mlr --icsvlite --opprint cat ./reg_test/input/utf8-1.csv +langue nom jour +français françois vendredi +žusz éloignée - + +mlr --icsvlite --opprint cat ./reg_test/input/utf8-2.csv +français françois vendredi +langue nom jour + +mlr --icsvlite --oxtab cat ./reg_test/input/utf8-1.csv +langue français +nom françois +jour vendredi + +langue žusz +nom éloignée +jour + +mlr --icsvlite --oxtab cat ./reg_test/input/utf8-2.csv +français langue +françois nom +vendredi jour + +mlr --inidx --ifs space --opprint cat ./reg_test/input/utf8-align.nidx +1 2 +191º test +191 test2 +francois français +françois francais + +mlr --inidx --ifs space --opprint --right cat ./reg_test/input/utf8-align.nidx + 1 2 + 191º test + 191 test2 +francois français +françois francais + +mlr --oxtab cat ./reg_test/input/utf8-align.dkvp +191º test +1912 test2 +cois çais +çois cais + +191º test +1912 test2 +ois çais +çois cais + +191º test +1912 test2 +coise çais +çois cais + +mlr --inidx --ifs space --oxtab --xvright cat ./reg_test/input/utf8-align.nidx +1 191º +2 test + +1 191 +2 test2 + +1 francois +2 français + +1 françois +2 francais + + +================================================================ +UTF-8 BOM + +mlr --icsv --opprint cat ./reg_test/input/bom.csv +a b c +1 2 3 +4 5 6 + +mlr --icsv --opprint cat +a b c +1 2 3 +4 5 6 + +mlr --icsv --opprint cat ./reg_test/input/bom-dquote-header.csv +a b c +1 2 3 +4 5 6 + +mlr --icsv --opprint cat +a b c +1 2 3 +4 5 6 + + +================================================================ +UTF-8 UPPERCASE/LOWERCASE + +mlr --icsvlite --opprint put $langue = toupper($langue) ./reg_test/input/utf8-1.csv +langue nom jour +FRANÇAIS françois vendredi +ŽUSZ éloignée - + +mlr --icsvlite --opprint put $nom = toupper($nom) ./reg_test/input/utf8-1.csv +langue nom jour +français FRANÇOIS vendredi +žusz ÉLOIGNÉE - + +mlr --icsvlite --opprint put $jour = toupper($jour) ./reg_test/input/utf8-1.csv +langue nom jour +français françois VENDREDI +žusz éloignée - + +mlr --icsvlite --opprint put $langue = capitalize($langue) ./reg_test/input/utf8-1.csv +langue nom jour +Français françois vendredi +Žusz éloignée - + +mlr --icsvlite --opprint put $nom = capitalize($nom) ./reg_test/input/utf8-1.csv +langue nom jour +français François vendredi +žusz Éloignée - + +mlr --icsvlite --opprint put $jour = capitalize($jour) ./reg_test/input/utf8-1.csv +langue nom jour +français françois Vendredi +žusz éloignée - + + +================================================================ +SKIP/PASS COMMENTS DKVP + + +---------------------------------------------------------------- input comments1.dkvp +cat ./reg_test/input/comments/comments1.dkvp +# hello world 1 +a=1,b=2,c=3 +a=4,b=5,c=6 + + +---------------------------------------------------------------- skip comments1.dkvp +mlr --skip-comments --idkvp --oxtab cat +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + +mlr --skip-comments --idkvp --oxtab cat ./reg_test/input/comments/comments1.dkvp +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + + +---------------------------------------------------------------- pass comments1.dkvp +mlr --pass-comments --idkvp --oxtab cat +# hello world 1 +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + +mlr --pass-comments --idkvp --oxtab cat ./reg_test/input/comments/comments1.dkvp +# hello world 1 +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + + +---------------------------------------------------------------- input comments2.dkvp +cat ./reg_test/input/comments/comments2.dkvp +a=1,b=2,c=3 +# hello world 2 +a=4,b=5,c=6 + + +---------------------------------------------------------------- skip comments2.dkvp +mlr --skip-comments --idkvp --oxtab cat +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + +mlr --skip-comments --idkvp --oxtab cat ./reg_test/input/comments/comments2.dkvp +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + + +---------------------------------------------------------------- pass comments2.dkvp +mlr --pass-comments --idkvp --oxtab cat +a 1 +b 2 +c 3 +# hello world 2 + +a 4 +b 5 +c 6 + +mlr --pass-comments --idkvp --oxtab cat ./reg_test/input/comments/comments2.dkvp +a 1 +b 2 +c 3 +# hello world 2 + +a 4 +b 5 +c 6 + + +---------------------------------------------------------------- input comments3.dkvp +cat ./reg_test/input/comments/comments3.dkvp +a=1,b=2,c=3 +a=4,b=5,c=6 +# hello world 3 + + +---------------------------------------------------------------- skip comments3.dkvp +mlr --skip-comments --idkvp --oxtab cat +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + +mlr --skip-comments --idkvp --oxtab cat ./reg_test/input/comments/comments3.dkvp +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + + +---------------------------------------------------------------- pass comments3.dkvp +mlr --pass-comments --idkvp --oxtab cat +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 +# hello world 3 + +mlr --pass-comments --idkvp --oxtab cat ./reg_test/input/comments/comments3.dkvp +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 +# hello world 3 + +mlr termcvt --lf2crlf + +---------------------------------------------------------------- input comments1-crlf.dkvp +cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.dkvp +# hello world 1 +a=1,b=2,c=3 +a=4,b=5,c=6 + + +---------------------------------------------------------------- skip comments1-crlf.dkvp +mlr --skip-comments --idkvp --oxtab cat +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + +mlr --skip-comments --idkvp --oxtab cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.dkvp +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + + +---------------------------------------------------------------- pass comments1-crlf.dkvp +mlr --pass-comments --idkvp --oxtab cat +# hello world 1 +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + +mlr --pass-comments --idkvp --oxtab cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.dkvp +# hello world 1 +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + + +================================================================ +SKIP/PASS COMMENTS DKVP WITH ALTERNATE PREFIX + + +---------------------------------------------------------------- input comments1-atat.dkvp +cat ./reg_test/input/comments/comments1-atat.dkvp +@@ hello world 1 +a=1,b=2,c=3 +a=4,b=5,c=6 + + +---------------------------------------------------------------- skip comments1-atat.dkvp +mlr --skip-comments-with @@ --idkvp --oxtab cat +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + +mlr --skip-comments-with @@ --idkvp --oxtab cat ./reg_test/input/comments/comments1-atat.dkvp +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + + +---------------------------------------------------------------- pass comments1-atat.dkvp +mlr --pass-comments-with @@ --idkvp --oxtab cat +@@ hello world 1 +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + +mlr --pass-comments-with @@ --idkvp --oxtab cat ./reg_test/input/comments/comments1-atat.dkvp +@@ hello world 1 +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + + +---------------------------------------------------------------- input comments2-atat.dkvp +cat ./reg_test/input/comments/comments2-atat.dkvp +a=1,b=2,c=3 +@@ hello world 2 +a=4,b=5,c=6 + + +---------------------------------------------------------------- skip comments2-atat.dkvp +mlr --skip-comments-with @@ --idkvp --oxtab cat +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + +mlr --skip-comments-with @@ --idkvp --oxtab cat ./reg_test/input/comments/comments2-atat.dkvp +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + + +---------------------------------------------------------------- pass comments2-atat.dkvp +mlr --pass-comments-with @@ --idkvp --oxtab cat +a 1 +b 2 +c 3 +@@ hello world 2 + +a 4 +b 5 +c 6 + +mlr --pass-comments-with @@ --idkvp --oxtab cat ./reg_test/input/comments/comments2-atat.dkvp +a 1 +b 2 +c 3 +@@ hello world 2 + +a 4 +b 5 +c 6 + + +---------------------------------------------------------------- input comments3-atat.dkvp +cat ./reg_test/input/comments/comments3-atat.dkvp +a=1,b=2,c=3 +a=4,b=5,c=6 +@@ hello world 3 + + +---------------------------------------------------------------- skip comments3-atat.dkvp +mlr --skip-comments-with @@ --idkvp --oxtab cat +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + +mlr --skip-comments-with @@ --idkvp --oxtab cat ./reg_test/input/comments/comments3-atat.dkvp +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 + + +---------------------------------------------------------------- pass comments3-atat.dkvp +mlr --pass-comments-with @@ --idkvp --oxtab cat +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 +@@ hello world 3 + +mlr --pass-comments-with @@ --idkvp --oxtab cat ./reg_test/input/comments/comments3-atat.dkvp +a 1 +b 2 +c 3 + +a 4 +b 5 +c 6 +@@ hello world 3 + + +================================================================ +SKIP/PASS COMMENTS NIDX + + +---------------------------------------------------------------- input comments1.nidx +cat ./reg_test/input/comments/comments1.nidx +# hello world 1 +aX1 bX2 cX3 +aX4 bX5 cX6 + + +---------------------------------------------------------------- skip comments1.nidx +mlr --skip-comments --inidx --oxtab cat +1 aX1 +2 bX2 +3 cX3 + +1 aX4 +2 bX5 +3 cX6 + +mlr --skip-comments --inidx --oxtab cat ./reg_test/input/comments/comments1.nidx +1 aX1 +2 bX2 +3 cX3 + +1 aX4 +2 bX5 +3 cX6 + + +---------------------------------------------------------------- pass comments1.nidx +mlr --pass-comments --inidx --oxtab cat +# hello world 1 +1 aX1 +2 bX2 +3 cX3 + +1 aX4 +2 bX5 +3 cX6 + +mlr --pass-comments --inidx --oxtab cat ./reg_test/input/comments/comments1.nidx +# hello world 1 +1 aX1 +2 bX2 +3 cX3 + +1 aX4 +2 bX5 +3 cX6 + + +---------------------------------------------------------------- input comments2.nidx +cat ./reg_test/input/comments/comments2.nidx +aX1 bX2 cX3 +# hello world 2 +aX4 bX5 cX6 + + +---------------------------------------------------------------- skip comments2.nidx +mlr --skip-comments --inidx --oxtab cat +1 aX1 +2 bX2 +3 cX3 + +1 aX4 +2 bX5 +3 cX6 + +mlr --skip-comments --inidx --oxtab cat ./reg_test/input/comments/comments2.nidx +1 aX1 +2 bX2 +3 cX3 + +1 aX4 +2 bX5 +3 cX6 + + +---------------------------------------------------------------- pass comments2.nidx +mlr --pass-comments --inidx --oxtab cat +1 aX1 +2 bX2 +3 cX3 +# hello world 2 + +1 aX4 +2 bX5 +3 cX6 + +mlr --pass-comments --inidx --oxtab cat ./reg_test/input/comments/comments2.nidx +1 aX1 +2 bX2 +3 cX3 +# hello world 2 + +1 aX4 +2 bX5 +3 cX6 + + +---------------------------------------------------------------- input comments3.nidx +cat ./reg_test/input/comments/comments3.nidx +aX1 bX2 cX3 +aX4 bX5 cX6 +# hello world 3 + + +---------------------------------------------------------------- skip comments3.nidx +mlr --skip-comments --inidx --oxtab cat +1 aX1 +2 bX2 +3 cX3 + +1 aX4 +2 bX5 +3 cX6 + +mlr --skip-comments --inidx --oxtab cat ./reg_test/input/comments/comments3.nidx +1 aX1 +2 bX2 +3 cX3 + +1 aX4 +2 bX5 +3 cX6 + + +---------------------------------------------------------------- pass comments3.nidx +mlr --pass-comments --inidx --oxtab cat +1 aX1 +2 bX2 +3 cX3 + +1 aX4 +2 bX5 +3 cX6 +# hello world 3 + +mlr --pass-comments --inidx --oxtab cat ./reg_test/input/comments/comments3.nidx +1 aX1 +2 bX2 +3 cX3 + +1 aX4 +2 bX5 +3 cX6 +# hello world 3 + +mlr termcvt --lf2crlf + +---------------------------------------------------------------- input comments1-crlf.nidx +cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.nidx +# hello world 1 +aX1 bX2 cX3 +aX4 bX5 cX6 + + +---------------------------------------------------------------- skip comments1-crlf.nidx +mlr --skip-comments --inidx --oxtab cat +1 aX1 +2 bX2 +3 cX3 + +1 aX4 +2 bX5 +3 cX6 + +mlr --skip-comments --inidx --oxtab cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.nidx +1 aX1 +2 bX2 +3 cX3 + +1 aX4 +2 bX5 +3 cX6 + + +---------------------------------------------------------------- pass comments1-crlf.nidx +mlr --pass-comments --inidx --oxtab cat +# hello world 1 +1 aX1 +2 bX2 +3 cX3 + +1 aX4 +2 bX5 +3 cX6 + +mlr --pass-comments --inidx --oxtab cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.nidx +# hello world 1 +1 aX1 +2 bX2 +3 cX3 + +1 aX4 +2 bX5 +3 cX6 + + +================================================================ +SKIP/PASS COMMENTS JSON + + +---------------------------------------------------------------- input comments1.json +cat ./reg_test/input/comments/comments1.json +# hello world 1 +{ "a":1, "b":2, "c":3 } +{ "a":4, "b":5, "c":6 } + + +---------------------------------------------------------------- skip comments1.json +mlr --skip-comments --ijson --odkvp cat +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --skip-comments --ijson --odkvp cat ./reg_test/input/comments/comments1.json +a=1,b=2,c=3 +a=4,b=5,c=6 + + +---------------------------------------------------------------- pass comments1.json +mlr --pass-comments --ijson --odkvp cat +# hello world 1 +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --pass-comments --ijson --odkvp cat ./reg_test/input/comments/comments1.json +# hello world 1 +a=1,b=2,c=3 +a=4,b=5,c=6 + + +---------------------------------------------------------------- input comments2.json +cat ./reg_test/input/comments/comments2.json +{ "a":1, "b":2, "c":3 } +# hello world 2 +{ "a":4, "b":5, "c":6 } + + +---------------------------------------------------------------- skip comments2.json +mlr --skip-comments --ijson --odkvp cat +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --skip-comments --ijson --odkvp cat ./reg_test/input/comments/comments2.json +a=1,b=2,c=3 +a=4,b=5,c=6 + + +---------------------------------------------------------------- pass comments2.json +mlr --pass-comments --ijson --odkvp cat +# hello world 2 +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --pass-comments --ijson --odkvp cat ./reg_test/input/comments/comments2.json +# hello world 2 +a=1,b=2,c=3 +a=4,b=5,c=6 + + +---------------------------------------------------------------- input comments3.json +cat ./reg_test/input/comments/comments3.json +{ "a":1, "b":2, "c":3 } +{ "a":4, "b":5, "c":6 } +# hello world 3 + + +---------------------------------------------------------------- skip comments3.json +mlr --skip-comments --ijson --odkvp cat +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --skip-comments --ijson --odkvp cat ./reg_test/input/comments/comments3.json +a=1,b=2,c=3 +a=4,b=5,c=6 + + +---------------------------------------------------------------- pass comments3.json +mlr --pass-comments --ijson --odkvp cat +# hello world 3 +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --pass-comments --ijson --odkvp cat ./reg_test/input/comments/comments3.json +# hello world 3 +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr termcvt --lf2crlf + +---------------------------------------------------------------- input comments1-crlf.json +cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.json +# hello world 1 +{ "a":1, "b":2, "c":3 } +{ "a":4, "b":5, "c":6 } + + +---------------------------------------------------------------- skip comments1-crlf.json +mlr --skip-comments --ijson --odkvp cat +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --skip-comments --ijson --odkvp cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.json +a=1,b=2,c=3 +a=4,b=5,c=6 + + +---------------------------------------------------------------- pass comments1-crlf.json +mlr --pass-comments --ijson --odkvp cat +# hello world 1 +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --pass-comments --ijson --odkvp cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.json +# hello world 1 +a=1,b=2,c=3 +a=4,b=5,c=6 + + +================================================================ +SKIP/PASS COMMENTS XTAB + + +---------------------------------------------------------------- input comments1.xtab +cat ./reg_test/input/comments/comments1.xtab +x 1 +#hello world3 +z 3 + +x 2 +#hello world4 +z 5 + + + +---------------------------------------------------------------- skip comments1.xtab +mlr --skip-comments --ixtab --odkvp cat +x=1,z=3 +x=2,z=5 + +mlr --skip-comments --ixtab --odkvp cat ./reg_test/input/comments/comments1.xtab +x=1,z=3 +x=2,z=5 + + +---------------------------------------------------------------- pass comments1.xtab +mlr --pass-comments --ixtab --odkvp cat +#hello world3 +x=1,z=3 +#hello world4 +x=2,z=5 + +mlr --pass-comments --ixtab --odkvp cat ./reg_test/input/comments/comments1.xtab +#hello world3 +x=1,z=3 +#hello world4 +x=2,z=5 + + +---------------------------------------------------------------- input comments2.xtab +cat ./reg_test/input/comments/comments2.xtab +#hello world1 + +#hello world2 +x 1 +#hello world3 +z 3 + +x 2 +#hello world4 +z 5 +#hello world5 + +#hello world6 + + +---------------------------------------------------------------- skip comments2.xtab +mlr --skip-comments --ixtab --odkvp cat +x=1,z=3 +x=2,z=5 + +mlr --skip-comments --ixtab --odkvp cat ./reg_test/input/comments/comments2.xtab +x=1,z=3 +x=2,z=5 + + +---------------------------------------------------------------- pass comments2.xtab +mlr --pass-comments --ixtab --odkvp cat +#hello world1 +#hello world2 +#hello world3 +x=1,z=3 +#hello world4 +#hello world5 +x=2,z=5 +#hello world6 + +mlr --pass-comments --ixtab --odkvp cat ./reg_test/input/comments/comments2.xtab +#hello world1 +#hello world2 +#hello world3 +x=1,z=3 +#hello world4 +#hello world5 +x=2,z=5 +#hello world6 + +mlr termcvt --lf2crlf + +---------------------------------------------------------------- input comments1-crlf.xtab +cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.xtab +x 1 +#hello world3 +z 3 + +x 2 +#hello world4 +z 5 + + + +---------------------------------------------------------------- skip comments1-crlf.xtab +mlr --skip-comments --ixtab --odkvp cat +x=1,z=3 +x=2,z=5 + +mlr --skip-comments --ixtab --odkvp cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.xtab +x=1,z=3 +x=2,z=5 + + +---------------------------------------------------------------- pass comments1-crlf.xtab +mlr --pass-comments --ixtab --odkvp cat +#hello world3 +x=1,z=3 +#hello world4 +x=2,z=5 + +mlr --pass-comments --ixtab --odkvp cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.xtab +#hello world3 +x=1,z=3 +#hello world4 +x=2,z=5 + + +================================================================ +SKIP/PASS COMMENTS CSVLITE + + +---------------------------------------------------------------- input comments1.csv +cat ./reg_test/input/comments/comments1.csv +# hello +a,b,c +1,2,3 +4,5,6 + + +---------------------------------------------------------------- skip comments1.csv +mlr --skip-comments --icsvlite --odkvp cat +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --skip-comments --icsvlite --odkvp cat ./reg_test/input/comments/comments1.csv +a=1,b=2,c=3 +a=4,b=5,c=6 + + +---------------------------------------------------------------- pass comments1.csv +mlr --pass-comments --icsvlite --odkvp cat +# hello +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --pass-comments --icsvlite --odkvp cat ./reg_test/input/comments/comments1.csv +# hello +a=1,b=2,c=3 +a=4,b=5,c=6 + + +---------------------------------------------------------------- input comments2.csv +cat ./reg_test/input/comments/comments2.csv +# hello +a,b,c +# hi +1,2,3 +# there +4,5,6 +# haha + + +---------------------------------------------------------------- skip comments2.csv +mlr --skip-comments --icsvlite --odkvp cat +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --skip-comments --icsvlite --odkvp cat ./reg_test/input/comments/comments2.csv +a=1,b=2,c=3 +a=4,b=5,c=6 + + +---------------------------------------------------------------- pass comments2.csv +mlr --pass-comments --icsvlite --odkvp cat +# hello +# hi +a=1,b=2,c=3 +# there +a=4,b=5,c=6 +# haha + +mlr --pass-comments --icsvlite --odkvp cat ./reg_test/input/comments/comments2.csv +# hello +# hi +a=1,b=2,c=3 +# there +a=4,b=5,c=6 +# haha + +mlr termcvt --lf2crlf + +---------------------------------------------------------------- input comments1-crlf.csv +cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.csv +# hello +a,b,c +1,2,3 +4,5,6 + + +---------------------------------------------------------------- skip comments1-crlf.csv +mlr --skip-comments --icsvlite --odkvp cat +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --skip-comments --icsvlite --odkvp cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.csv +a=1,b=2,c=3 +a=4,b=5,c=6 + + +---------------------------------------------------------------- pass comments1-crlf.csv +mlr --pass-comments --icsvlite --odkvp cat +# hello +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --pass-comments --icsvlite --odkvp cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.csv +# hello +a=1,b=2,c=3 +a=4,b=5,c=6 + + +================================================================ +SKIP/PASS COMMENTS CSV + + +---------------------------------------------------------------- input comments1.csv +cat ./reg_test/input/comments/comments1.csv +# hello +a,b,c +1,2,3 +4,5,6 + + +---------------------------------------------------------------- skip comments1.csv +mlr --skip-comments --icsv --odkvp cat +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --skip-comments --icsv --odkvp cat ./reg_test/input/comments/comments1.csv +a=1,b=2,c=3 +a=4,b=5,c=6 + + +---------------------------------------------------------------- pass comments1.csv +mlr --pass-comments --icsv --odkvp cat +# hello +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --pass-comments --icsv --odkvp cat ./reg_test/input/comments/comments1.csv +# hello +a=1,b=2,c=3 +a=4,b=5,c=6 + + +---------------------------------------------------------------- input comments2.csv +cat ./reg_test/input/comments/comments2.csv +# hello +a,b,c +# hi +1,2,3 +# there +4,5,6 +# haha + + +---------------------------------------------------------------- skip comments2.csv +mlr --skip-comments --icsv --odkvp cat +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --skip-comments --icsv --odkvp cat ./reg_test/input/comments/comments2.csv +a=1,b=2,c=3 +a=4,b=5,c=6 + + +---------------------------------------------------------------- pass comments2.csv +mlr --pass-comments --icsv --odkvp cat +# hello +# hi +a=1,b=2,c=3 +# there +a=4,b=5,c=6 +# haha + +mlr --pass-comments --icsv --odkvp cat ./reg_test/input/comments/comments2.csv +# hello +# hi +a=1,b=2,c=3 +# there +a=4,b=5,c=6 +# haha + +mlr termcvt --lf2crlf + +---------------------------------------------------------------- input comments1-crlf.csv +cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.csv +# hello +a,b,c +1,2,3 +4,5,6 + + +---------------------------------------------------------------- skip comments1-crlf.csv +mlr --skip-comments --icsv --odkvp cat +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --skip-comments --icsv --odkvp cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.csv +a=1,b=2,c=3 +a=4,b=5,c=6 + + +---------------------------------------------------------------- pass comments1-crlf.csv +mlr --pass-comments --icsv --odkvp cat +# hello +a=1,b=2,c=3 +a=4,b=5,c=6 + +mlr --pass-comments --icsv --odkvp cat /Users/johnkerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/comments1-crlf.csv +# hello +a=1,b=2,c=3 +a=4,b=5,c=6 + + +================================================================ +INT64 I/O + +mlr --oxtab put $c=$a;$d=$b;$e=hexfmt($a);$f=hexfmt($b) ./reg_test/input/int64io.dkvp +a 0x1 +b 1 +c 1 +d 1 +e 0x1 +f 0x1 + +a 0x7ffffffffffffffe +b 9223372036854775806 +c 9223372036854775806 +d 9223372036854775806 +e 0x7ffffffffffffffe +f 0x7ffffffffffffffe + +a 0x7fffffffffffffff +b 9223372036854775807 +c 9223372036854775807 +d 9223372036854775807 +e 0x7fffffffffffffff +f 0x7fffffffffffffff + +a 0x8000000000000000 +b -9223372036854775808 +c -9223372036854775808 +d -9223372036854775808 +e 0x8000000000000000 +f 0x8000000000000000 + +a 0xffffffffffffffff +b -1 +c -1 +d -1 +e 0xffffffffffffffff +f 0xffffffffffffffff + +mlr --oxtab --ofmt %.8g put $p0=$p+0;$p1=$p+1;$p2=$p+2;$p3=$p+3 ./reg_test/input/int64arith.dkvp +p 0x7ffffffffffff9ff +n 0x8000000000000000 +p0 9223372036854774271 +p1 9223372036854774272 +p2 9223372036854774273 +p3 9223372036854774274 + +p 0x7ffffffffffffa00 +n 0x8000000000000001 +p0 9223372036854774272 +p1 9223372036854774273 +p2 9223372036854774274 +p3 9223372036854774275 + +p 0x7ffffffffffffbff +n 0x8000000000000200 +p0 9223372036854774783 +p1 9223372036854774784 +p2 9223372036854774785 +p3 9223372036854774786 + +p 0x7ffffffffffffc00 +n 0x8000000000000400 +p0 9223372036854774784 +p1 9223372036854774785 +p2 9223372036854774786 +p3 9223372036854774787 + +p 0x7ffffffffffffe00 +n 0x8000000000000401 +p0 9223372036854775296 +p1 9223372036854775297 +p2 9223372036854775298 +p3 9223372036854775299 + +p 0x7ffffffffffffffe +n 0x8000000000000600 +p0 9223372036854775806 +p1 9223372036854775807 +p2 9.223372e+18 +p3 9.223372e+18 + +p 0x7fffffffffffffff +n 0x8000000000000601 +p0 9223372036854775807 +p1 9.223372e+18 +p2 9.223372e+18 +p3 9.223372e+18 + +mlr --oxtab --ofmt %.8g put $p0=$p-0;$p1=$p-1;$p2=$p-2;$p3=$p-3 ./reg_test/input/int64arith.dkvp +p 0x7ffffffffffff9ff +n 0x8000000000000000 +p0 9223372036854774271 +p1 9223372036854774270 +p2 9223372036854774269 +p3 9223372036854774268 + +p 0x7ffffffffffffa00 +n 0x8000000000000001 +p0 9223372036854774272 +p1 9223372036854774271 +p2 9223372036854774270 +p3 9223372036854774269 + +p 0x7ffffffffffffbff +n 0x8000000000000200 +p0 9223372036854774783 +p1 9223372036854774782 +p2 9223372036854774781 +p3 9223372036854774780 + +p 0x7ffffffffffffc00 +n 0x8000000000000400 +p0 9223372036854774784 +p1 9223372036854774783 +p2 9223372036854774782 +p3 9223372036854774781 + +p 0x7ffffffffffffe00 +n 0x8000000000000401 +p0 9223372036854775296 +p1 9223372036854775295 +p2 9223372036854775294 +p3 9223372036854775293 + +p 0x7ffffffffffffffe +n 0x8000000000000600 +p0 9223372036854775806 +p1 9223372036854775805 +p2 9223372036854775804 +p3 9223372036854775803 + +p 0x7fffffffffffffff +n 0x8000000000000601 +p0 9223372036854775807 +p1 9223372036854775806 +p2 9223372036854775805 +p3 9223372036854775804 + +mlr --oxtab --ofmt %.8g put $p0=$p*0;$p1=$p*1;$p2=$p*2;$p3=$p*3 ./reg_test/input/int64arith.dkvp +p 0x7ffffffffffff9ff +n 0x8000000000000000 +p0 0 +p1 9223372036854774271 +p2 1.8446744e+19 +p3 2.7670116e+19 + +p 0x7ffffffffffffa00 +n 0x8000000000000001 +p0 0 +p1 9223372036854774272 +p2 1.8446744e+19 +p3 2.7670116e+19 + +p 0x7ffffffffffffbff +n 0x8000000000000200 +p0 0 +p1 9223372036854774783 +p2 1.8446744e+19 +p3 2.7670116e+19 + +p 0x7ffffffffffffc00 +n 0x8000000000000400 +p0 0 +p1 9223372036854774784 +p2 1.8446744e+19 +p3 2.7670116e+19 + +p 0x7ffffffffffffe00 +n 0x8000000000000401 +p0 0 +p1 9.223372e+18 +p2 1.8446744e+19 +p3 2.7670116e+19 + +p 0x7ffffffffffffffe +n 0x8000000000000600 +p0 0 +p1 9.223372e+18 +p2 1.8446744e+19 +p3 2.7670116e+19 + +p 0x7fffffffffffffff +n 0x8000000000000601 +p0 0 +p1 9.223372e+18 +p2 1.8446744e+19 +p3 2.7670116e+19 + +mlr --oxtab --ofmt %.8g put $n0=$n+0;$n1=$n+1;$n2=$n+2;$n3=$n+3 ./reg_test/input/int64arith.dkvp +p 0x7ffffffffffff9ff +n 0x8000000000000000 +n0 -9223372036854775808 +n1 -9223372036854775807 +n2 -9223372036854775806 +n3 -9223372036854775805 + +p 0x7ffffffffffffa00 +n 0x8000000000000001 +n0 -9223372036854775807 +n1 -9223372036854775806 +n2 -9223372036854775805 +n3 -9223372036854775804 + +p 0x7ffffffffffffbff +n 0x8000000000000200 +n0 -9223372036854775296 +n1 -9223372036854775295 +n2 -9223372036854775294 +n3 -9223372036854775293 + +p 0x7ffffffffffffc00 +n 0x8000000000000400 +n0 -9223372036854774784 +n1 -9223372036854774783 +n2 -9223372036854774782 +n3 -9223372036854774781 + +p 0x7ffffffffffffe00 +n 0x8000000000000401 +n0 -9223372036854774783 +n1 -9223372036854774782 +n2 -9223372036854774781 +n3 -9223372036854774780 + +p 0x7ffffffffffffffe +n 0x8000000000000600 +n0 -9223372036854774272 +n1 -9223372036854774271 +n2 -9223372036854774270 +n3 -9223372036854774269 + +p 0x7fffffffffffffff +n 0x8000000000000601 +n0 -9223372036854774271 +n1 -9223372036854774270 +n2 -9223372036854774269 +n3 -9223372036854774268 + +mlr --oxtab --ofmt %.8g put $n0=$n-0;$n1=$n-1;$n2=$n-2;$n3=$n-3 ./reg_test/input/int64arith.dkvp +p 0x7ffffffffffff9ff +n 0x8000000000000000 +n0 -9223372036854775808 +n1 -9.223372e+18 +n2 -9.223372e+18 +n3 -9.223372e+18 + +p 0x7ffffffffffffa00 +n 0x8000000000000001 +n0 -9223372036854775807 +n1 -9223372036854775808 +n2 -9.223372e+18 +n3 -9.223372e+18 + +p 0x7ffffffffffffbff +n 0x8000000000000200 +n0 -9223372036854775296 +n1 -9223372036854775297 +n2 -9223372036854775298 +n3 -9223372036854775299 + +p 0x7ffffffffffffc00 +n 0x8000000000000400 +n0 -9223372036854774784 +n1 -9223372036854774785 +n2 -9223372036854774786 +n3 -9223372036854774787 + +p 0x7ffffffffffffe00 +n 0x8000000000000401 +n0 -9223372036854774783 +n1 -9223372036854774784 +n2 -9223372036854774785 +n3 -9223372036854774786 + +p 0x7ffffffffffffffe +n 0x8000000000000600 +n0 -9223372036854774272 +n1 -9223372036854774273 +n2 -9223372036854774274 +n3 -9223372036854774275 + +p 0x7fffffffffffffff +n 0x8000000000000601 +n0 -9223372036854774271 +n1 -9223372036854774272 +n2 -9223372036854774273 +n3 -9223372036854774274 + +mlr --oxtab --ofmt %.8g put $n0=$n*0;$n1=$n*1;$n2=$n*2;$n3=$n*3 ./reg_test/input/int64arith.dkvp +p 0x7ffffffffffff9ff +n 0x8000000000000000 +n0 0 +n1 -9.223372e+18 +n2 -1.8446744e+19 +n3 -2.7670116e+19 + +p 0x7ffffffffffffa00 +n 0x8000000000000001 +n0 0 +n1 -9.223372e+18 +n2 -1.8446744e+19 +n3 -2.7670116e+19 + +p 0x7ffffffffffffbff +n 0x8000000000000200 +n0 0 +n1 -9.223372e+18 +n2 -1.8446744e+19 +n3 -2.7670116e+19 + +p 0x7ffffffffffffc00 +n 0x8000000000000400 +n0 0 +n1 -9223372036854774784 +n2 -1.8446744e+19 +n3 -2.7670116e+19 + +p 0x7ffffffffffffe00 +n 0x8000000000000401 +n0 0 +n1 -9223372036854774783 +n2 -1.8446744e+19 +n3 -2.7670116e+19 + +p 0x7ffffffffffffffe +n 0x8000000000000600 +n0 0 +n1 -9223372036854774272 +n2 -1.8446744e+19 +n3 -2.7670116e+19 + +p 0x7fffffffffffffff +n 0x8000000000000601 +n0 0 +n1 -9223372036854774271 +n2 -1.8446744e+19 +n3 -2.7670116e+19 + + +================================================================ +COMPRESSED INPUT + +mlr --csv --prepipe cat cat ./reg_test/input/rfc-csv/simple.csv-crlf +a,b,c +1,x,3 +4,5,6 +x,"y""yy",z + +mlr --dkvp --prepipe cat cat ./reg_test/input/abixy +a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 +a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 +a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 +a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 +a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 +a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 +a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 +a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 +a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 +a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 + +mlr --csv --prepipe cat cat +a,b,c +1,x,3 +4,5,6 +x,"y""yy",z + +mlr --dkvp --prepipe cat cat +a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 +a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 +a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 +a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 +a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 +a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 +a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 +a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 +a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 +a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 + + +================================================================ +STDIN + +mlr --csv cat +a,b,c +1,x,3 +4,5,6 +x,"y""yy",z + + +================================================================ +RFC-CSV + +mlr --csv cat ./reg_test/input/rfc-csv/simple.csv-crlf +a,b,c +1,x,3 +4,5,6 +x,"y""yy",z + +mlr --csv cat ./reg_test/input/rfc-csv/simple-truncated.csv +a,b,c +1,x,3 +4,5,6 + +mlr --csv cat ./reg_test/input/rfc-csv/narrow.csv +a +1 +2 +3 +4 + +mlr --csv cat ./reg_test/input/rfc-csv/narrow-truncated.csv +a +1 +2 +3 +4 + +mlr --csv cat ./reg_test/input/rfc-csv/quoted-comma.csv +a,b,c +1,"x,3",y +4,5,6 + +mlr --csv cat ./reg_test/input/rfc-csv/quoted-comma-truncated.csv +a,b,c +1,"x,3",y +4,5,6 + +mlr --csv cat ./reg_test/input/rfc-csv/quoted-crlf.csv +a,b,c +1,"x +3",y +4,5,6 + +mlr --csv cat ./reg_test/input/rfc-csv/quoted-crlf-truncated.csv +a,b,c +1,"x +3",y +4,5,6 + +mlr --csv cat ./reg_test/input/rfc-csv/simple-truncated.csv ./reg_test/input/rfc-csv/simple.csv-crlf +a,b,c +1,x,3 +4,5,6 +1,x,3 +4,5,6 +x,"y""yy",z + +mlr --csv --ifs semicolon --ofs pipe --irs lf --ors lflf cut -x -f b ./reg_test/input/rfc-csv/modify-defaults.csv +a|c + +1|3 + +4|6 + + +mlr --csv --rs lf --quote-original cut -o -f c,b,a ./reg_test/input/quote-original.csv +c,b,a +3,2,1 +6,"5",4 +"9",8,"7" + +mlr --icsv --oxtab cat ./reg_test/input/comma-at-eof.csv +a 1 +b 2 +c 3 + +a 4 +b 5 +c + +mlr --csv --quote-all cat ./reg_test/input/rfc-csv/simple.csv-crlf +"a","b","c" +"1","x","3" +"4","5","6" +"x","y""yy","z" + +mlr --csv --quote-original cat ./reg_test/input/rfc-csv/simple.csv-crlf +a,b,c +1,x,3 +4,5,6 +"x","y""yy","z" + +mlr --itsv --rs lf --oxtab cat ./reg_test/input/simple.tsv +a pan +b pan +i 1 +x 2 +y 0.989945 + +a eks +b pan +i 2 +x 1 +y 0.775159 + +a wye +b wye +i 3 +x 1 +y 0.761642 + +a eks +b wye +i 4 +x 5 +y 0.322934 + +a wye +b pan +i 5 +x 5 +y 0.448283 + +mlr --iusv --oxtab cat ./reg_test/input/example.usv +a d +b e +c f + +a g +b h +c i + + +================================================================ +RAGGED NON-RFC CSV + +mlr --icsv --oxtab --ragged cat ./reg_test/input/ragged.csv +a 1 +b 2 +c 3 + +a 4 +b 5 +c + +a 6 +b 7 +c 8 +4 9 + +mlr --icsvlite --oxtab --ragged cat ./reg_test/input/ragged.csv +a 1 +b 2 +c 3 + +a 4 +b 5 +c + +a 6 +b 7 +c 8 +4 9 + + +================================================================ +MARKDOWN OUTPUT + +mlr --itsv --rs lf --omd cat ./reg_test/input/simple.tsv +| a | b | i | x | y | +| --- | --- | --- | --- | --- | +| pan | pan | 1 | 2 | 0.989945 | +| eks | pan | 2 | 1 | 0.775159 | +| wye | wye | 3 | 1 | 0.761642 | +| eks | wye | 4 | 5 | 0.322934 | +| wye | pan | 5 | 5 | 0.448283 | + + +================================================================ +CSV/RS ENVIRONMENT DEFAULTS + +mlr --csv cut -f a ./reg_test/input/rfc-csv/simple.csv-crlf +a +1 +4 +x + +mlr --csv --rs crlf cut -f a ./reg_test/input/rfc-csv/simple.csv-crlf +a +1 +4 +x + +mlr --csv --rs lf cut -f a ./reg_test/input/rfc-csv/simple.csv-crlf +a +1 +4 +mlr: unmatched double quote at line 3. + + +================================================================ +MULTI-CHARACTER IRS/IFS/IPS FOR DKVP + +mlr --oxtab --idkvp --irs lf --ifs , --ips = cut -o -f x,a,i ./reg_test/input/multi-sep.dkvp-crlf +x :0.641593543645736508/ +a :wye/ +i :0/ + +x :0.827614412562742041/ +a :eks/ +i :1/ + +x :0.923068348748175560/ +a :zee/ +i :2/ + +x :0.000047786161325772/ +a :zee/ +i :3/ + +x :0.676537984365847889/ +a :zee/ +i :4/ + +mlr --oxtab --idkvp --irs lf --ifs /, --ips =: cut -o -f x,a,i ./reg_test/input/multi-sep.dkvp-crlf +x 0.641593543645736508 +a wye +i 0 + +x 0.827614412562742041 +a eks +i 1 + +x 0.923068348748175560 +a zee +i 2 + +x 0.000047786161325772 +a zee +i 3 + +x 0.676537984365847889 +a zee +i 4 + +mlr --oxtab --idkvp --irs crlf --ifs , --ips = cut -o -f x,a,i ./reg_test/input/multi-sep.dkvp-crlf +x :0.641593543645736508/ +a :wye/ +i :0/ + +x :0.827614412562742041/ +a :eks/ +i :1/ + +x :0.923068348748175560/ +a :zee/ +i :2/ + +x :0.000047786161325772/ +a :zee/ +i :3/ + +x :0.676537984365847889/ +a :zee/ +i :4/ + +mlr --oxtab --idkvp --irs crlf --ifs /, --ips =: cut -o -f x,a,i ./reg_test/input/multi-sep.dkvp-crlf +x 0.641593543645736508 +a wye +i 0 + +x 0.827614412562742041 +a eks +i 1 + +x 0.923068348748175560 +a zee +i 2 + +x 0.000047786161325772 +a zee +i 3 + +x 0.676537984365847889 +a zee +i 4 + + +================================================================ +MULTI-CHARACTER IRS/IFS FOR NIDX + +mlr --oxtab --inidx --irs lf --ifs , cut -o -f 4,1,3 ./reg_test/input/multi-sep.dkvp-crlf +4 x=:0.641593543645736508/ +1 a=:wye/ +3 i=:0/ + +4 x=:0.827614412562742041/ +1 a=:eks/ +3 i=:1/ + +4 x=:0.923068348748175560/ +1 a=:zee/ +3 i=:2/ + +4 x=:0.000047786161325772/ +1 a=:zee/ +3 i=:3/ + +4 x=:0.676537984365847889/ +1 a=:zee/ +3 i=:4/ + +mlr --oxtab --inidx --irs lf --ifs /, cut -o -f 4,1,3 ./reg_test/input/multi-sep.dkvp-crlf +4 x=:0.641593543645736508 +1 a=:wye +3 i=:0 + +4 x=:0.827614412562742041 +1 a=:eks +3 i=:1 + +4 x=:0.923068348748175560 +1 a=:zee +3 i=:2 + +4 x=:0.000047786161325772 +1 a=:zee +3 i=:3 + +4 x=:0.676537984365847889 +1 a=:zee +3 i=:4 + +mlr --oxtab --inidx --irs crlf --ifs , cut -o -f 4,1,3 ./reg_test/input/multi-sep.dkvp-crlf +4 x=:0.641593543645736508/ +1 a=:wye/ +3 i=:0/ + +4 x=:0.827614412562742041/ +1 a=:eks/ +3 i=:1/ + +4 x=:0.923068348748175560/ +1 a=:zee/ +3 i=:2/ + +4 x=:0.000047786161325772/ +1 a=:zee/ +3 i=:3/ + +4 x=:0.676537984365847889/ +1 a=:zee/ +3 i=:4/ + +mlr --oxtab --inidx --irs crlf --ifs /, cut -o -f 4,1,3 ./reg_test/input/multi-sep.dkvp-crlf +4 x=:0.641593543645736508 +1 a=:wye +3 i=:0 + +4 x=:0.827614412562742041 +1 a=:eks +3 i=:1 + +4 x=:0.923068348748175560 +1 a=:zee +3 i=:2 + +4 x=:0.000047786161325772 +1 a=:zee +3 i=:3 + +4 x=:0.676537984365847889 +1 a=:zee +3 i=:4 + + +================================================================ +MULTI-CHARACTER IRS/IFS FOR CSVLITE + +mlr --oxtab --icsvlite --irs lf --ifs , cut -o -f x/,a/,i/ ./reg_test/input/multi-sep.csv-crlf +x/ 0.641593543645736508/ +a/ wye/ +i/ 0/ + +x/ 0.827614412562742041/ +a/ eks/ +i/ 1/ + +x/ 0.923068348748175560/ +a/ zee/ +i/ 2/ + +x/ 0.000047786161325772/ +a/ zee/ +i/ 3/ + +x/ 0.676537984365847889/ +a/ zee/ +i/ 4/ + +mlr --oxtab --icsvlite --irs lf --ifs /, cut -o -f x,a,i ./reg_test/input/multi-sep.csv-crlf +x 0.641593543645736508 +a wye +i 0 + +x 0.827614412562742041 +a eks +i 1 + +x 0.923068348748175560 +a zee +i 2 + +x 0.000047786161325772 +a zee +i 3 + +x 0.676537984365847889 +a zee +i 4 + +mlr --oxtab --icsvlite --irs crlf --ifs , cut -o -f x/,a/,i/ ./reg_test/input/multi-sep.csv-crlf +x/ 0.641593543645736508/ +a/ wye/ +i/ 0/ + +x/ 0.827614412562742041/ +a/ eks/ +i/ 1/ + +x/ 0.923068348748175560/ +a/ zee/ +i/ 2/ + +x/ 0.000047786161325772/ +a/ zee/ +i/ 3/ + +x/ 0.676537984365847889/ +a/ zee/ +i/ 4/ + +mlr --oxtab --icsvlite --irs crlf --ifs /, cut -o -f x,a,i ./reg_test/input/multi-sep.csv-crlf +x 0.641593543645736508 +a wye +i 0 + +x 0.827614412562742041 +a eks +i 1 + +x 0.923068348748175560 +a zee +i 2 + +x 0.000047786161325772 +a zee +i 3 + +x 0.676537984365847889 +a zee +i 4 + + +================================================================ +MULTI-CHARACTER SEPARATORS FOR XTAB + +mlr --xtab --ifs crlf --ofs Z cut -x -f b ./reg_test/input/truncated.xtab-crlf +a 1Zc 3ZZd 4Ze 5Z +mlr --xtab --ips . --ops @ cut -x -f b ./reg_test/input/dots.xtab +a@1 +c@345 + +defg@6 +hi@@@78 + +mlr --xtab --ips : --ops @@@@ put $sum=int($a+$b) ./reg_test/input/multi-ips.dkvp +a@@@@1 +b@@@@2 +sum@@@@3 + + +================================================================ +EMBEDDED IPS FOR XTAB + +mlr --xtab cat ./reg_test/input/embedded-ips.xtab +a 1 +b 2 +c 3 4 5 + + +================================================================ +MULTI-CHARACTER IRS FOR PPRINT + +mlr --pprint --irs crlf --ifs / --ofs @ cut -x -f b ./reg_test/input/dots.pprint-crlf +a@@@i@@x@@@@@@@@@@@@@@@@@@@y +pan@1@@0.3467901443380824@@0.7268028627434533 +eks@2@@0.7586799647899636@@0.5221511083334797 +wye@3@@0.20460330576630303@0.33831852551664776 +eks@4@@0.38139939387114097@0.13418874328430463 +wye@5@@0.5732889198020006@@0.8636244699032729 +zee@6@@0.5271261600918548@@0.49322128674835697 +eks@7@@0.6117840605678454@@0.1878849191181694 +zee@8@@0.5985540091064224@@0.976181385699006 +hat@9@@0.03144187646093577@0.7495507603507059 +pan@10@0.5026260055412137@@0.9526183602969864 + + +================================================================ +BARRED PPRINT + +mlr --opprint --barred cat ./reg_test/input/abixy ++-----+-----+----+---------------------+---------------------+ +| a | b | i | x | y | ++-----+-----+----+---------------------+---------------------+ +| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | +| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | +| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | +| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | +| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | +| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | +| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | +| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | +| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | +| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | ++-----+-----+----+---------------------+---------------------+ + +mlr --opprint --barred --right cat ./reg_test/input/abixy ++-----+-----+----+---------------------+---------------------+ +| a | b | i | x | y | ++-----+-----+----+---------------------+---------------------+ +| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | +| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | +| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | +| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | +| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | +| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | +| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | +| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | +| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | +| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | ++-----+-----+----+---------------------+---------------------+ + +mlr --opprint --barred cat ./reg_test/input/abixy-het ++-----+-----+---+--------------------+--------------------+ +| a | b | i | x | y | ++-----+-----+---+--------------------+--------------------+ +| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | +| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | ++-----+-----+---+--------------------+--------------------+ + ++-----+-----+---+---------------------+---------------------+ +| aaa | b | i | x | y | ++-----+-----+---+---------------------+---------------------+ +| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | ++-----+-----+---+---------------------+---------------------+ + ++-----+-----+---+---------------------+---------------------+ +| a | bbb | i | x | y | ++-----+-----+---+---------------------+---------------------+ +| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | ++-----+-----+---+---------------------+---------------------+ + ++-----+-----+---+--------------------+--------------------+ +| a | b | i | xxx | y | ++-----+-----+---+--------------------+--------------------+ +| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | ++-----+-----+---+--------------------+--------------------+ + ++-----+-----+---+--------------------+---------------------+ +| a | b | i | x | y | ++-----+-----+---+--------------------+---------------------+ +| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | ++-----+-----+---+--------------------+---------------------+ + ++-----+-----+-----+--------------------+--------------------+ +| a | b | iii | x | y | ++-----+-----+-----+--------------------+--------------------+ +| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | ++-----+-----+-----+--------------------+--------------------+ + ++-----+-----+---+--------------------+-------------------+ +| a | b | i | x | yyy | ++-----+-----+---+--------------------+-------------------+ +| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | ++-----+-----+---+--------------------+-------------------+ + ++-----+-----+---+---------------------+--------------------+ +| aaa | bbb | i | x | y | ++-----+-----+---+---------------------+--------------------+ +| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | ++-----+-----+---+---------------------+--------------------+ + ++-----+-----+----+--------------------+--------------------+ +| a | b | i | x | y | ++-----+-----+----+--------------------+--------------------+ +| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | ++-----+-----+----+--------------------+--------------------+ + +mlr --opprint --barred --right cat ./reg_test/input/abixy-het ++-----+-----+---+--------------------+--------------------+ +| a | b | i | x | y | ++-----+-----+---+--------------------+--------------------+ +| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | +| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | ++-----+-----+---+--------------------+--------------------+ + ++-----+-----+---+---------------------+---------------------+ +| aaa | b | i | x | y | ++-----+-----+---+---------------------+---------------------+ +| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | ++-----+-----+---+---------------------+---------------------+ + ++-----+-----+---+---------------------+---------------------+ +| a | bbb | i | x | y | ++-----+-----+---+---------------------+---------------------+ +| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | ++-----+-----+---+---------------------+---------------------+ + ++-----+-----+---+--------------------+--------------------+ +| a | b | i | xxx | y | ++-----+-----+---+--------------------+--------------------+ +| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | ++-----+-----+---+--------------------+--------------------+ + ++-----+-----+---+--------------------+---------------------+ +| a | b | i | x | y | ++-----+-----+---+--------------------+---------------------+ +| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | ++-----+-----+---+--------------------+---------------------+ + ++-----+-----+-----+--------------------+--------------------+ +| a | b | iii | x | y | ++-----+-----+-----+--------------------+--------------------+ +| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | ++-----+-----+-----+--------------------+--------------------+ + ++-----+-----+---+--------------------+-------------------+ +| a | b | i | x | yyy | ++-----+-----+---+--------------------+-------------------+ +| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | ++-----+-----+---+--------------------+-------------------+ + ++-----+-----+---+---------------------+--------------------+ +| aaa | bbb | i | x | y | ++-----+-----+---+---------------------+--------------------+ +| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | ++-----+-----+---+---------------------+--------------------+ + ++-----+-----+----+--------------------+--------------------+ +| a | b | i | x | y | ++-----+-----+----+--------------------+--------------------+ +| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | ++-----+-----+----+--------------------+--------------------+ + + +================================================================ +MULTI-CHARACTER IXS SPECIFIERS + +mlr --oxtab --idkvp --irs lf --ifs , --ips = cut -o -f x,a,i ./reg_test/input/multi-sep.dkvp-crlf +x :0.641593543645736508/ +a :wye/ +i :0/ + +x :0.827614412562742041/ +a :eks/ +i :1/ + +x :0.923068348748175560/ +a :zee/ +i :2/ + +x :0.000047786161325772/ +a :zee/ +i :3/ + +x :0.676537984365847889/ +a :zee/ +i :4/ + +mlr --oxtab --idkvp --irs lf --ifs /, --ips =: cut -o -f x,a,i ./reg_test/input/multi-sep.dkvp-crlf +x 0.641593543645736508 +a wye +i 0 + +x 0.827614412562742041 +a eks +i 1 + +x 0.923068348748175560 +a zee +i 2 + +x 0.000047786161325772 +a zee +i 3 + +x 0.676537984365847889 +a zee +i 4 + + +================================================================ +JSON I/O + +mlr --ijson --opprint cat ./reg_test/input/small-non-nested.json +a b i x y +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --ijson --opprint cat ./reg_test/input/small-non-nested-wrapped.json +a b i x y +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --ijson --oxtab cat ./reg_test/input/small-nested.json +z:pan:1 0.726803 +z:pan:0 0.952618 +z:eks:0 0.134189 +z:eks:1 0.187885 +z:wye:1 0.863624 +z:zee:0 0.976181 +z:hat:1 0.749551 + +mlr --ojson cat ./reg_test/input/json-output-options.dkvp +{ "a": 1, "b": "x", "c": 3 } +{ "d": 4 } +{ "1": 5, "f": 6 } + +mlr --ojson --jvstack cat ./reg_test/input/json-output-options.dkvp +{ + "a": 1, + "b": "x", + "c": 3 +} +{ + "d": 4 +} +{ + "1": 5, + "f": 6 +} + +mlr --ojson --jlistwrap cat ./reg_test/input/json-output-options.dkvp +[ +{ "a": 1, "b": "x", "c": 3 } +,{ "d": 4 } +,{ "1": 5, "f": 6 } +] + +mlr --ojson --jvstack --jlistwrap cat ./reg_test/input/json-output-options.dkvp +[ +{ + "a": 1, + "b": "x", + "c": 3 +} +,{ + "d": 4 +} +,{ + "1": 5, + "f": 6 +} +] + +mlr --ojson --jquoteall cat ./reg_test/input/json-output-options.dkvp +{ "a": "1", "b": "x", "c": "3" } +{ "d": "4" } +{ "1": "5", "f": "6" } + +mlr --ojson --jvstack --jquoteall cat ./reg_test/input/json-output-options.dkvp +{ + "a": "1", + "b": "x", + "c": "3" +} +{ + "d": "4" +} +{ + "1": "5", + "f": "6" +} + +mlr --ojson --jlistwrap --jquoteall cat ./reg_test/input/json-output-options.dkvp +[ +{ "a": "1", "b": "x", "c": "3" } +,{ "d": "4" } +,{ "1": "5", "f": "6" } +] + +mlr --ojson --jvstack --jlistwrap --jquoteall cat ./reg_test/input/json-output-options.dkvp +[ +{ + "a": "1", + "b": "x", + "c": "3" +} +,{ + "d": "4" +} +,{ + "1": "5", + "f": "6" +} +] + +mlr --ojson --jvquoteall cat ./reg_test/input/json-output-options.dkvp +{ "a": "1", "b": "x", "c": "3" } +{ "d": "4" } +{ "1": "5", "f": "6" } + +mlr --ojson --jvstack --jvquoteall cat ./reg_test/input/json-output-options.dkvp +{ + "a": "1", + "b": "x", + "c": "3" +} +{ + "d": "4" +} +{ + "1": "5", + "f": "6" +} + +mlr --ojson --jlistwrap --jvquoteall cat ./reg_test/input/json-output-options.dkvp +[ +{ "a": "1", "b": "x", "c": "3" } +,{ "d": "4" } +,{ "1": "5", "f": "6" } +] + +mlr --ojson --jvstack --jlistwrap --jvquoteall cat ./reg_test/input/json-output-options.dkvp +[ +{ + "a": "1", + "b": "x", + "c": "3" +} +,{ + "d": "4" +} +,{ + "1": "5", + "f": "6" +} +] + +mlr --ojson --jknquoteint cat ./reg_test/input/json-output-options.dkvp +{ "a": 1, "b": "x", "c": 3 } +{ "d": 4 } +{ "1": 5, "f": 6 } + +mlr --ojson --jvstack --jknquoteint cat ./reg_test/input/json-output-options.dkvp +{ + "a": 1, + "b": "x", + "c": 3 +} +{ + "d": 4 +} +{ + "1": 5, + "f": 6 +} + +mlr --ojson --jlistwrap --jknquoteint cat ./reg_test/input/json-output-options.dkvp +[ +{ "a": 1, "b": "x", "c": 3 } +,{ "d": 4 } +,{ "1": 5, "f": 6 } +] + +mlr --ojson --jvstack --jlistwrap --jknquoteint cat ./reg_test/input/json-output-options.dkvp +[ +{ + "a": 1, + "b": "x", + "c": 3 +} +,{ + "d": 4 +} +,{ + "1": 5, + "f": 6 +} +] + +mlr put -q --jvquoteall dump $* ./reg_test/input/json-output-options.dkvp +{ + "a": "1", + "b": "x", + "c": "3" +} +{ + "d": "4" +} +{ + "1": "5", + "f": "6" +} + +mlr put -q --jvquoteall o = $*; o[7] = 8; dump o ./reg_test/input/json-output-options.dkvp +{ + "a": "1", + "b": "x", + "c": "3", + "7": "8" +} +{ + "d": "4", + "7": "8" +} +{ + "1": "5", + "f": "6", + "7": "8" +} + +mlr put -q --jknquoteint dump $* ./reg_test/input/json-output-options.dkvp +{ + "a": 1, + "b": "x", + "c": 3 +} +{ + "d": 4 +} +{ + "1": 5, + "f": 6 +} + +mlr put -q --jknquoteint o = $*; o[7] = 8; dump o ./reg_test/input/json-output-options.dkvp +{ + "a": 1, + "b": "x", + "c": 3, + 7: 8 +} +{ + "d": 4, + 7: 8 +} +{ + "1": 5, + "f": 6, + 7: 8 +} + +mlr --ijson --opprint cat ./reg_test/input/small-non-nested-wrapped.json ./reg_test/input/small-non-nested-wrapped.json +a b i x y +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --icsv --ojson --rs lf cat +{ "col": "abc \"def\" \\ghi" } + +mlr --icsv --ojson --jvquoteall --rs lf cat +{ "col": "abc \"def\" \\ghi" } + +mlr --ijson --oxtab cat ./reg_test/input/arrays.json +a 1 +b 1 + +a 2 +b:0 2 +b:1 3 + +a 3 +b:c:0 4 +b:c:1 5 + +a 4 +b:c:d:0 4 +b:c:d:1 5 + +a 5 +b:0 6 +b:1 7 +b:2:0 8 +b:2:1 9 + +a 6 +b:0:0:0 11 + +mlr --ijson --oxtab --json-map-arrays-on-input cat ./reg_test/input/arrays.json +a 1 +b 1 + +a 2 +b:0 2 +b:1 3 + +a 3 +b:c:0 4 +b:c:1 5 + +a 4 +b:c:d:0 4 +b:c:d:1 5 + +a 5 +b:0 6 +b:1 7 +b:2:0 8 +b:2:1 9 + +a 6 +b:0:0:0 11 + +mlr --ijson --oxtab --json-skip-arrays-on-input cat ./reg_test/input/arrays.json +a 1 +b 1 + +a 2 + +a 3 + +a 4 + +a 5 + +a 6 + +mlr --ijson --oxtab --json-fatal-arrays-on-input cat ./reg_test/input/arrays.json +mlr: found array item within JSON object. This is valid but unmillerable JSON. +Use --json-skip-arrays-on-input to exclude these from input without fataling. +Or, --json-map-arrays-on-input to convert them to integer-indexed maps. +mlr: Unable to parse JSON data. + +mlr --json cat ./reg_test/input/escapes.json +{ "abc\bdef\fghi": "jkl\nmno\rpqr\tstu\"vw\\xyz" } +{ "abc\bdef\fghi": "jkl\nmno\rpqr\tstu\"vw\\\\xyz" } + + +================================================================ +FORMAT-CONVERSION KEYSTROKE-SAVERS + +mlr --d2t cat ./reg_test/input/abixy.dkvp +a b i x y +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --d2n cat ./reg_test/input/abixy.dkvp +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --d2j cat ./reg_test/input/abixy.dkvp +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } + +mlr --d2p cat ./reg_test/input/abixy.dkvp +a b i x y +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --d2x cat ./reg_test/input/abixy.dkvp +a pan +b pan +i 1 +x 0.3467901443380824 +y 0.7268028627434533 + +a eks +b pan +i 2 +x 0.7586799647899636 +y 0.5221511083334797 + +a wye +b wye +i 3 +x 0.20460330576630303 +y 0.33831852551664776 + +a eks +b wye +i 4 +x 0.38139939387114097 +y 0.13418874328430463 + +a wye +b pan +i 5 +x 0.5732889198020006 +y 0.8636244699032729 + +a zee +b pan +i 6 +x 0.5271261600918548 +y 0.49322128674835697 + +a eks +b zee +i 7 +x 0.6117840605678454 +y 0.1878849191181694 + +a zee +b wye +i 8 +x 0.5985540091064224 +y 0.976181385699006 + +a hat +b wye +i 9 +x 0.03144187646093577 +y 0.7495507603507059 + +a pan +b wye +i 10 +x 0.5026260055412137 +y 0.9526183602969864 + +mlr --d2m cat ./reg_test/input/abixy.dkvp +| a | b | i | x | y | +| --- | --- | --- | --- | --- | +| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | +| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | +| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | +| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | +| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | +| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | +| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | +| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | +| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | +| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | + +mlr --c2t cat ./reg_test/input/abixy.csv +a b i x y +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --c2d cat ./reg_test/input/abixy.csv +a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 +a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 +a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 +a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 +a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 +a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 +a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 +a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 +a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 +a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 + +mlr --c2n cat ./reg_test/input/abixy.csv +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --c2j cat ./reg_test/input/abixy.csv +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } + +mlr --c2p cat ./reg_test/input/abixy.csv +a b i x y +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --c2x cat ./reg_test/input/abixy.csv +a pan +b pan +i 1 +x 0.3467901443380824 +y 0.7268028627434533 + +a eks +b pan +i 2 +x 0.7586799647899636 +y 0.5221511083334797 + +a wye +b wye +i 3 +x 0.20460330576630303 +y 0.33831852551664776 + +a eks +b wye +i 4 +x 0.38139939387114097 +y 0.13418874328430463 + +a wye +b pan +i 5 +x 0.5732889198020006 +y 0.8636244699032729 + +a zee +b pan +i 6 +x 0.5271261600918548 +y 0.49322128674835697 + +a eks +b zee +i 7 +x 0.6117840605678454 +y 0.1878849191181694 + +a zee +b wye +i 8 +x 0.5985540091064224 +y 0.976181385699006 + +a hat +b wye +i 9 +x 0.03144187646093577 +y 0.7495507603507059 + +a pan +b wye +i 10 +x 0.5026260055412137 +y 0.9526183602969864 + +mlr --c2m cat ./reg_test/input/abixy.csv +| a | b | i | x | y | +| --- | --- | --- | --- | --- | +| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | +| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | +| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | +| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | +| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | +| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | +| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | +| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | +| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | +| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | + +mlr --t2c cat ./reg_test/input/abixy.tsv +a,b,i,x,y +pan,pan,1,0.3467901443380824,0.7268028627434533 +eks,pan,2,0.7586799647899636,0.5221511083334797 +wye,wye,3,0.20460330576630303,0.33831852551664776 +eks,wye,4,0.38139939387114097,0.13418874328430463 +wye,pan,5,0.5732889198020006,0.8636244699032729 +zee,pan,6,0.5271261600918548,0.49322128674835697 +eks,zee,7,0.6117840605678454,0.1878849191181694 +zee,wye,8,0.5985540091064224,0.976181385699006 +hat,wye,9,0.03144187646093577,0.7495507603507059 +pan,wye,10,0.5026260055412137,0.9526183602969864 + +mlr --t2d cat ./reg_test/input/abixy.tsv +a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 +a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 +a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 +a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 +a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 +a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 +a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 +a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 +a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 +a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 + +mlr --t2n cat ./reg_test/input/abixy.tsv +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --t2j cat ./reg_test/input/abixy.tsv +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } + +mlr --t2p cat ./reg_test/input/abixy.tsv +a b i x y +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --t2x cat ./reg_test/input/abixy.tsv +a pan +b pan +i 1 +x 0.3467901443380824 +y 0.7268028627434533 + +a eks +b pan +i 2 +x 0.7586799647899636 +y 0.5221511083334797 + +a wye +b wye +i 3 +x 0.20460330576630303 +y 0.33831852551664776 + +a eks +b wye +i 4 +x 0.38139939387114097 +y 0.13418874328430463 + +a wye +b pan +i 5 +x 0.5732889198020006 +y 0.8636244699032729 + +a zee +b pan +i 6 +x 0.5271261600918548 +y 0.49322128674835697 + +a eks +b zee +i 7 +x 0.6117840605678454 +y 0.1878849191181694 + +a zee +b wye +i 8 +x 0.5985540091064224 +y 0.976181385699006 + +a hat +b wye +i 9 +x 0.03144187646093577 +y 0.7495507603507059 + +a pan +b wye +i 10 +x 0.5026260055412137 +y 0.9526183602969864 + +mlr --t2m cat ./reg_test/input/abixy.tsv +| a | b | i | x | y | +| --- | --- | --- | --- | --- | +| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | +| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | +| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | +| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | +| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | +| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | +| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | +| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | +| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | +| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | + +mlr --n2c cat ./reg_test/input/abixy.nidx +1,2,3,4,5 +pan,pan,1,0.3467901443380824,0.7268028627434533 +eks,pan,2,0.7586799647899636,0.5221511083334797 +wye,wye,3,0.20460330576630303,0.33831852551664776 +eks,wye,4,0.38139939387114097,0.13418874328430463 +wye,pan,5,0.5732889198020006,0.8636244699032729 +zee,pan,6,0.5271261600918548,0.49322128674835697 +eks,zee,7,0.6117840605678454,0.1878849191181694 +zee,wye,8,0.5985540091064224,0.976181385699006 +hat,wye,9,0.03144187646093577,0.7495507603507059 +pan,wye,10,0.5026260055412137,0.9526183602969864 + +mlr --n2t cat ./reg_test/input/abixy.nidx +1 2 3 4 5 +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --n2d cat ./reg_test/input/abixy.nidx +1=pan,2=pan,3=1,4=0.3467901443380824,5=0.7268028627434533 +1=eks,2=pan,3=2,4=0.7586799647899636,5=0.5221511083334797 +1=wye,2=wye,3=3,4=0.20460330576630303,5=0.33831852551664776 +1=eks,2=wye,3=4,4=0.38139939387114097,5=0.13418874328430463 +1=wye,2=pan,3=5,4=0.5732889198020006,5=0.8636244699032729 +1=zee,2=pan,3=6,4=0.5271261600918548,5=0.49322128674835697 +1=eks,2=zee,3=7,4=0.6117840605678454,5=0.1878849191181694 +1=zee,2=wye,3=8,4=0.5985540091064224,5=0.976181385699006 +1=hat,2=wye,3=9,4=0.03144187646093577,5=0.7495507603507059 +1=pan,2=wye,3=10,4=0.5026260055412137,5=0.9526183602969864 + +mlr --n2j cat ./reg_test/input/abixy.nidx +{ "1": "pan", "2": "pan", "3": 1, "4": 0.3467901443380824, "5": 0.7268028627434533 } +{ "1": "eks", "2": "pan", "3": 2, "4": 0.7586799647899636, "5": 0.5221511083334797 } +{ "1": "wye", "2": "wye", "3": 3, "4": 0.20460330576630303, "5": 0.33831852551664776 } +{ "1": "eks", "2": "wye", "3": 4, "4": 0.38139939387114097, "5": 0.13418874328430463 } +{ "1": "wye", "2": "pan", "3": 5, "4": 0.5732889198020006, "5": 0.8636244699032729 } +{ "1": "zee", "2": "pan", "3": 6, "4": 0.5271261600918548, "5": 0.49322128674835697 } +{ "1": "eks", "2": "zee", "3": 7, "4": 0.6117840605678454, "5": 0.1878849191181694 } +{ "1": "zee", "2": "wye", "3": 8, "4": 0.5985540091064224, "5": 0.976181385699006 } +{ "1": "hat", "2": "wye", "3": 9, "4": 0.03144187646093577, "5": 0.7495507603507059 } +{ "1": "pan", "2": "wye", "3": 10, "4": 0.5026260055412137, "5": 0.9526183602969864 } + +mlr --n2p cat ./reg_test/input/abixy.nidx +1 2 3 4 5 +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --n2x cat ./reg_test/input/abixy.nidx +1 pan +2 pan +3 1 +4 0.3467901443380824 +5 0.7268028627434533 + +1 eks +2 pan +3 2 +4 0.7586799647899636 +5 0.5221511083334797 + +1 wye +2 wye +3 3 +4 0.20460330576630303 +5 0.33831852551664776 + +1 eks +2 wye +3 4 +4 0.38139939387114097 +5 0.13418874328430463 + +1 wye +2 pan +3 5 +4 0.5732889198020006 +5 0.8636244699032729 + +1 zee +2 pan +3 6 +4 0.5271261600918548 +5 0.49322128674835697 + +1 eks +2 zee +3 7 +4 0.6117840605678454 +5 0.1878849191181694 + +1 zee +2 wye +3 8 +4 0.5985540091064224 +5 0.976181385699006 + +1 hat +2 wye +3 9 +4 0.03144187646093577 +5 0.7495507603507059 + +1 pan +2 wye +3 10 +4 0.5026260055412137 +5 0.9526183602969864 + +mlr --n2m cat ./reg_test/input/abixy.nidx +| 1 | 2 | 3 | 4 | 5 | +| --- | --- | --- | --- | --- | +| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | +| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | +| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | +| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | +| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | +| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | +| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | +| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | +| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | +| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | + +mlr --j2c cat ./reg_test/input/abixy.json +a,b,i,x,y +pan,pan,1,0.3467901443380824,0.7268028627434533 +eks,pan,2,0.7586799647899636,0.5221511083334797 +wye,wye,3,0.20460330576630303,0.33831852551664776 +eks,wye,4,0.38139939387114097,0.13418874328430463 +wye,pan,5,0.5732889198020006,0.8636244699032729 +zee,pan,6,0.5271261600918548,0.49322128674835697 +eks,zee,7,0.6117840605678454,0.1878849191181694 +zee,wye,8,0.5985540091064224,0.976181385699006 +hat,wye,9,0.03144187646093577,0.7495507603507059 +pan,wye,10,0.5026260055412137,0.9526183602969864 + +mlr --j2t cat ./reg_test/input/abixy.json +a b i x y +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --j2d cat ./reg_test/input/abixy.json +a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 +a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 +a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 +a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 +a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 +a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 +a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 +a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 +a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 +a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 + +mlr --j2n cat ./reg_test/input/abixy.json +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --j2p cat ./reg_test/input/abixy.json +a b i x y +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --j2x cat ./reg_test/input/abixy.json +a pan +b pan +i 1 +x 0.3467901443380824 +y 0.7268028627434533 + +a eks +b pan +i 2 +x 0.7586799647899636 +y 0.5221511083334797 + +a wye +b wye +i 3 +x 0.20460330576630303 +y 0.33831852551664776 + +a eks +b wye +i 4 +x 0.38139939387114097 +y 0.13418874328430463 + +a wye +b pan +i 5 +x 0.5732889198020006 +y 0.8636244699032729 + +a zee +b pan +i 6 +x 0.5271261600918548 +y 0.49322128674835697 + +a eks +b zee +i 7 +x 0.6117840605678454 +y 0.1878849191181694 + +a zee +b wye +i 8 +x 0.5985540091064224 +y 0.976181385699006 + +a hat +b wye +i 9 +x 0.03144187646093577 +y 0.7495507603507059 + +a pan +b wye +i 10 +x 0.5026260055412137 +y 0.9526183602969864 + +mlr --j2m cat ./reg_test/input/abixy.json +| a | b | i | x | y | +| --- | --- | --- | --- | --- | +| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | +| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | +| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | +| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | +| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | +| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | +| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | +| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | +| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | +| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | + +mlr --p2c cat ./reg_test/input/abixy.pprint +a,b,i,x,y +pan,pan,1,0.3467901443380824,0.7268028627434533 +eks,pan,2,0.7586799647899636,0.5221511083334797 +wye,wye,3,0.20460330576630303,0.33831852551664776 +eks,wye,4,0.38139939387114097,0.13418874328430463 +wye,pan,5,0.5732889198020006,0.8636244699032729 +zee,pan,6,0.5271261600918548,0.49322128674835697 +eks,zee,7,0.6117840605678454,0.1878849191181694 +zee,wye,8,0.5985540091064224,0.976181385699006 +hat,wye,9,0.03144187646093577,0.7495507603507059 +pan,wye,10,0.5026260055412137,0.9526183602969864 + +mlr --p2t cat ./reg_test/input/abixy.pprint +a b i x y +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --p2d cat ./reg_test/input/abixy.pprint +a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 +a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 +a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 +a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 +a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 +a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 +a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 +a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 +a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 +a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 + +mlr --p2n cat ./reg_test/input/abixy.pprint +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --p2j cat ./reg_test/input/abixy.pprint +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } + +mlr --p2x cat ./reg_test/input/abixy.pprint +a pan +b pan +i 1 +x 0.3467901443380824 +y 0.7268028627434533 + +a eks +b pan +i 2 +x 0.7586799647899636 +y 0.5221511083334797 + +a wye +b wye +i 3 +x 0.20460330576630303 +y 0.33831852551664776 + +a eks +b wye +i 4 +x 0.38139939387114097 +y 0.13418874328430463 + +a wye +b pan +i 5 +x 0.5732889198020006 +y 0.8636244699032729 + +a zee +b pan +i 6 +x 0.5271261600918548 +y 0.49322128674835697 + +a eks +b zee +i 7 +x 0.6117840605678454 +y 0.1878849191181694 + +a zee +b wye +i 8 +x 0.5985540091064224 +y 0.976181385699006 + +a hat +b wye +i 9 +x 0.03144187646093577 +y 0.7495507603507059 + +a pan +b wye +i 10 +x 0.5026260055412137 +y 0.9526183602969864 + +mlr --p2m cat ./reg_test/input/abixy.pprint +| a | b | i | x | y | +| --- | --- | --- | --- | --- | +| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | +| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | +| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | +| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | +| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | +| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | +| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | +| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | +| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | +| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | + +mlr --x2c cat ./reg_test/input/abixy.xtab +a,b,i,x,y +pan,pan,1,0.3467901443380824,0.7268028627434533 +eks,pan,2,0.7586799647899636,0.5221511083334797 +wye,wye,3,0.20460330576630303,0.33831852551664776 +eks,wye,4,0.38139939387114097,0.13418874328430463 +wye,pan,5,0.5732889198020006,0.8636244699032729 +zee,pan,6,0.5271261600918548,0.49322128674835697 +eks,zee,7,0.6117840605678454,0.1878849191181694 +zee,wye,8,0.5985540091064224,0.976181385699006 +hat,wye,9,0.03144187646093577,0.7495507603507059 +pan,wye,10,0.5026260055412137,0.9526183602969864 + +mlr --x2t cat ./reg_test/input/abixy.xtab +a b i x y +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --x2d cat ./reg_test/input/abixy.xtab +a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 +a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 +a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 +a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 +a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 +a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 +a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 +a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 +a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 +a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 + +mlr --x2n cat ./reg_test/input/abixy.xtab +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --x2j cat ./reg_test/input/abixy.xtab +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } + +mlr --x2p cat ./reg_test/input/abixy.xtab +a b i x y +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 +wye pan 5 0.5732889198020006 0.8636244699032729 +zee pan 6 0.5271261600918548 0.49322128674835697 +eks zee 7 0.6117840605678454 0.1878849191181694 +zee wye 8 0.5985540091064224 0.976181385699006 +hat wye 9 0.03144187646093577 0.7495507603507059 +pan wye 10 0.5026260055412137 0.9526183602969864 + +mlr --x2m cat ./reg_test/input/abixy.xtab +| a | b | i | x | y | +| --- | --- | --- | --- | --- | +| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 | +| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 | +| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 | +| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 | +| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 | +| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 | +| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 | +| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 | +| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 | +| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 | + + +================================================================ +LF/CRLF AND AUTODETECT + +mlr --irs auto --ors lf cat ./reg_test/input/line-term-lf.dkvp +a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 +a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 +a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 +a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 +a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 +a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 +a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 +a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 +a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 +a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 + +mlr --irs auto --ors lf cat ./reg_test/input/line-term-crlf.dkvp +a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 +a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 +a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 +a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 +a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 +a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 +a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 +a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 +a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 +a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 + +mlr cat ./reg_test/input/line-term-lf.dkvp +a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 +a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 +a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 +a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 +a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 +a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 +a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 +a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 +a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 +a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 + +mlr cat ./reg_test/input/line-term-crlf.dkvp +a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 +a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 +a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 +a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 +a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 +a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 +a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 +a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 +a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 +a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 + + +---------------------------------------------------------------- nidx +mlr --irs auto --ors lf --nidx --fs comma cat ./reg_test/input/line-term-lf.dkvp +a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 +a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 +a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 +a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 +a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 +a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 +a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 +a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 +a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 +a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 + +mlr --irs auto --ors lf --nidx --fs comma cat ./reg_test/input/line-term-crlf.dkvp +a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 +a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 +a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 +a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 +a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 +a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 +a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 +a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 +a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 +a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 + +mlr --nidx --fs comma cat ./reg_test/input/line-term-lf.dkvp +a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 +a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 +a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 +a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 +a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 +a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 +a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 +a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 +a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 +a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 + +mlr --nidx --fs comma cat ./reg_test/input/line-term-crlf.dkvp +a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533 +a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797 +a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776 +a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463 +a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729 +a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697 +a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694 +a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006 +a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059 +a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864 + + +---------------------------------------------------------------- csvlite +mlr --irs auto --ors lf --csvlite cat ./reg_test/input/line-term-lf.csv +a,b,i,x,y +pan,pan,1,0.3467901443380824,0.7268028627434533 +eks,pan,2,0.7586799647899636,0.5221511083334797 +wye,wye,3,0.20460330576630303,0.33831852551664776 +eks,wye,4,0.38139939387114097,0.13418874328430463 +wye,pan,5,0.5732889198020006,0.8636244699032729 +zee,pan,6,0.5271261600918548,0.49322128674835697 +eks,zee,7,0.6117840605678454,0.1878849191181694 +zee,wye,8,0.5985540091064224,0.976181385699006 +hat,wye,9,0.03144187646093577,0.7495507603507059 +pan,wye,10,0.5026260055412137,0.9526183602969864 + +mlr --irs auto --ors lf --csvlite cat ./reg_test/input/line-term-crlf.csv +a,b,i,x,y +pan,pan,1,0.3467901443380824,0.7268028627434533 +eks,pan,2,0.7586799647899636,0.5221511083334797 +wye,wye,3,0.20460330576630303,0.33831852551664776 +eks,wye,4,0.38139939387114097,0.13418874328430463 +wye,pan,5,0.5732889198020006,0.8636244699032729 +zee,pan,6,0.5271261600918548,0.49322128674835697 +eks,zee,7,0.6117840605678454,0.1878849191181694 +zee,wye,8,0.5985540091064224,0.976181385699006 +hat,wye,9,0.03144187646093577,0.7495507603507059 +pan,wye,10,0.5026260055412137,0.9526183602969864 + +mlr --csvlite cat ./reg_test/input/line-term-lf.csv +a,b,i,x,y +pan,pan,1,0.3467901443380824,0.7268028627434533 +eks,pan,2,0.7586799647899636,0.5221511083334797 +wye,wye,3,0.20460330576630303,0.33831852551664776 +eks,wye,4,0.38139939387114097,0.13418874328430463 +wye,pan,5,0.5732889198020006,0.8636244699032729 +zee,pan,6,0.5271261600918548,0.49322128674835697 +eks,zee,7,0.6117840605678454,0.1878849191181694 +zee,wye,8,0.5985540091064224,0.976181385699006 +hat,wye,9,0.03144187646093577,0.7495507603507059 +pan,wye,10,0.5026260055412137,0.9526183602969864 + +mlr --csvlite cat ./reg_test/input/line-term-crlf.csv +a,b,i,x,y +pan,pan,1,0.3467901443380824,0.7268028627434533 +eks,pan,2,0.7586799647899636,0.5221511083334797 +wye,wye,3,0.20460330576630303,0.33831852551664776 +eks,wye,4,0.38139939387114097,0.13418874328430463 +wye,pan,5,0.5732889198020006,0.8636244699032729 +zee,pan,6,0.5271261600918548,0.49322128674835697 +eks,zee,7,0.6117840605678454,0.1878849191181694 +zee,wye,8,0.5985540091064224,0.976181385699006 +hat,wye,9,0.03144187646093577,0.7495507603507059 +pan,wye,10,0.5026260055412137,0.9526183602969864 + + +---------------------------------------------------------------- pprint +mlr --irs auto --ors lf --pprint cat ./reg_test/input/line-term-lf.csv +a,b,i,x,y +pan,pan,1,0.3467901443380824,0.7268028627434533 +eks,pan,2,0.7586799647899636,0.5221511083334797 +wye,wye,3,0.20460330576630303,0.33831852551664776 +eks,wye,4,0.38139939387114097,0.13418874328430463 +wye,pan,5,0.5732889198020006,0.8636244699032729 +zee,pan,6,0.5271261600918548,0.49322128674835697 +eks,zee,7,0.6117840605678454,0.1878849191181694 +zee,wye,8,0.5985540091064224,0.976181385699006 +hat,wye,9,0.03144187646093577,0.7495507603507059 +pan,wye,10,0.5026260055412137,0.9526183602969864 + +mlr --irs auto --ors lf --pprint cat ./reg_test/input/line-term-crlf.csv +a,b,i,x,y +pan,pan,1,0.3467901443380824,0.7268028627434533 +eks,pan,2,0.7586799647899636,0.5221511083334797 +wye,wye,3,0.20460330576630303,0.33831852551664776 +eks,wye,4,0.38139939387114097,0.13418874328430463 +wye,pan,5,0.5732889198020006,0.8636244699032729 +zee,pan,6,0.5271261600918548,0.49322128674835697 +eks,zee,7,0.6117840605678454,0.1878849191181694 +zee,wye,8,0.5985540091064224,0.976181385699006 +hat,wye,9,0.03144187646093577,0.7495507603507059 +pan,wye,10,0.5026260055412137,0.9526183602969864 + +mlr --pprint cat ./reg_test/input/line-term-lf.csv +a,b,i,x,y +pan,pan,1,0.3467901443380824,0.7268028627434533 +eks,pan,2,0.7586799647899636,0.5221511083334797 +wye,wye,3,0.20460330576630303,0.33831852551664776 +eks,wye,4,0.38139939387114097,0.13418874328430463 +wye,pan,5,0.5732889198020006,0.8636244699032729 +zee,pan,6,0.5271261600918548,0.49322128674835697 +eks,zee,7,0.6117840605678454,0.1878849191181694 +zee,wye,8,0.5985540091064224,0.976181385699006 +hat,wye,9,0.03144187646093577,0.7495507603507059 +pan,wye,10,0.5026260055412137,0.9526183602969864 + +mlr --pprint cat ./reg_test/input/line-term-crlf.csv +a,b,i,x,y +pan,pan,1,0.3467901443380824,0.7268028627434533 +eks,pan,2,0.7586799647899636,0.5221511083334797 +wye,wye,3,0.20460330576630303,0.33831852551664776 +eks,wye,4,0.38139939387114097,0.13418874328430463 +wye,pan,5,0.5732889198020006,0.8636244699032729 +zee,pan,6,0.5271261600918548,0.49322128674835697 +eks,zee,7,0.6117840605678454,0.1878849191181694 +zee,wye,8,0.5985540091064224,0.976181385699006 +hat,wye,9,0.03144187646093577,0.7495507603507059 +pan,wye,10,0.5026260055412137,0.9526183602969864 + + +---------------------------------------------------------------- xtab +mlr --ifs auto --xtab cat ./reg_test/input/line-term-lf.xtab +a pan +b pan +i 1 +x 0.3467901443380824 +y 0.7268028627434533 + +a eks +b pan +i 2 +x 0.7586799647899636 +y 0.5221511083334797 + +a wye +b wye +i 3 +x 0.20460330576630303 +y 0.33831852551664776 + +a eks +b wye +i 4 +x 0.38139939387114097 +y 0.13418874328430463 + +a wye +b pan +i 5 +x 0.5732889198020006 +y 0.8636244699032729 + +a zee +b pan +i 6 +x 0.5271261600918548 +y 0.49322128674835697 + +a eks +b zee +i 7 +x 0.6117840605678454 +y 0.1878849191181694 + +a zee +b wye +i 8 +x 0.5985540091064224 +y 0.976181385699006 + +a hat +b wye +i 9 +x 0.03144187646093577 +y 0.7495507603507059 + +a pan +b wye +i 10 +x 0.5026260055412137 +y 0.9526183602969864 + +mlr --ifs auto --xtab cat ./reg_test/input/line-term-crlf.xtab +a pan +b pan +i 1 +x 0.3467901443380824 +y 0.7268028627434533 + +a eks +b pan +i 2 +x 0.7586799647899636 +y 0.5221511083334797 + +a wye +b wye +i 3 +x 0.20460330576630303 +y 0.33831852551664776 + +a eks +b wye +i 4 +x 0.38139939387114097 +y 0.13418874328430463 + +a wye +b pan +i 5 +x 0.5732889198020006 +y 0.8636244699032729 + +a zee +b pan +i 6 +x 0.5271261600918548 +y 0.49322128674835697 + +a eks +b zee +i 7 +x 0.6117840605678454 +y 0.1878849191181694 + +a zee +b wye +i 8 +x 0.5985540091064224 +y 0.976181385699006 + +a hat +b wye +i 9 +x 0.03144187646093577 +y 0.7495507603507059 + +a pan +b wye +i 10 +x 0.5026260055412137 +y 0.9526183602969864 + +mlr --fs auto --xtab cat ./reg_test/input/line-term-lf.xtab +a pan +b pan +i 1 +x 0.3467901443380824 +y 0.7268028627434533 + +a eks +b pan +i 2 +x 0.7586799647899636 +y 0.5221511083334797 + +a wye +b wye +i 3 +x 0.20460330576630303 +y 0.33831852551664776 + +a eks +b wye +i 4 +x 0.38139939387114097 +y 0.13418874328430463 + +a wye +b pan +i 5 +x 0.5732889198020006 +y 0.8636244699032729 + +a zee +b pan +i 6 +x 0.5271261600918548 +y 0.49322128674835697 + +a eks +b zee +i 7 +x 0.6117840605678454 +y 0.1878849191181694 + +a zee +b wye +i 8 +x 0.5985540091064224 +y 0.976181385699006 + +a hat +b wye +i 9 +x 0.03144187646093577 +y 0.7495507603507059 + +a pan +b wye +i 10 +x 0.5026260055412137 +y 0.9526183602969864 + +mlr --fs auto --xtab cat ./reg_test/input/line-term-crlf.xtab +a pan +b pan +i 1 +x 0.3467901443380824 +y 0.7268028627434533 + +a eks +b pan +i 2 +x 0.7586799647899636 +y 0.5221511083334797 + +a wye +b wye +i 3 +x 0.20460330576630303 +y 0.33831852551664776 + +a eks +b wye +i 4 +x 0.38139939387114097 +y 0.13418874328430463 + +a wye +b pan +i 5 +x 0.5732889198020006 +y 0.8636244699032729 + +a zee +b pan +i 6 +x 0.5271261600918548 +y 0.49322128674835697 + +a eks +b zee +i 7 +x 0.6117840605678454 +y 0.1878849191181694 + +a zee +b wye +i 8 +x 0.5985540091064224 +y 0.976181385699006 + +a hat +b wye +i 9 +x 0.03144187646093577 +y 0.7495507603507059 + +a pan +b wye +i 10 +x 0.5026260055412137 +y 0.9526183602969864 + + +---------------------------------------------------------------- xtab +mlr --ifs auto --xtab cat ./reg_test/input/line-term-lf.xtab +a pan +b pan +i 1 +x 0.3467901443380824 +y 0.7268028627434533 + +a eks +b pan +i 2 +x 0.7586799647899636 +y 0.5221511083334797 + +a wye +b wye +i 3 +x 0.20460330576630303 +y 0.33831852551664776 + +a eks +b wye +i 4 +x 0.38139939387114097 +y 0.13418874328430463 + +a wye +b pan +i 5 +x 0.5732889198020006 +y 0.8636244699032729 + +a zee +b pan +i 6 +x 0.5271261600918548 +y 0.49322128674835697 + +a eks +b zee +i 7 +x 0.6117840605678454 +y 0.1878849191181694 + +a zee +b wye +i 8 +x 0.5985540091064224 +y 0.976181385699006 + +a hat +b wye +i 9 +x 0.03144187646093577 +y 0.7495507603507059 + +a pan +b wye +i 10 +x 0.5026260055412137 +y 0.9526183602969864 + +mlr --ifs auto --xtab cat ./reg_test/input/line-term-crlf.xtab +a pan +b pan +i 1 +x 0.3467901443380824 +y 0.7268028627434533 + +a eks +b pan +i 2 +x 0.7586799647899636 +y 0.5221511083334797 + +a wye +b wye +i 3 +x 0.20460330576630303 +y 0.33831852551664776 + +a eks +b wye +i 4 +x 0.38139939387114097 +y 0.13418874328430463 + +a wye +b pan +i 5 +x 0.5732889198020006 +y 0.8636244699032729 + +a zee +b pan +i 6 +x 0.5271261600918548 +y 0.49322128674835697 + +a eks +b zee +i 7 +x 0.6117840605678454 +y 0.1878849191181694 + +a zee +b wye +i 8 +x 0.5985540091064224 +y 0.976181385699006 + +a hat +b wye +i 9 +x 0.03144187646093577 +y 0.7495507603507059 + +a pan +b wye +i 10 +x 0.5026260055412137 +y 0.9526183602969864 + +mlr --fs auto --xtab cat ./reg_test/input/line-term-lf.xtab +a pan +b pan +i 1 +x 0.3467901443380824 +y 0.7268028627434533 + +a eks +b pan +i 2 +x 0.7586799647899636 +y 0.5221511083334797 + +a wye +b wye +i 3 +x 0.20460330576630303 +y 0.33831852551664776 + +a eks +b wye +i 4 +x 0.38139939387114097 +y 0.13418874328430463 + +a wye +b pan +i 5 +x 0.5732889198020006 +y 0.8636244699032729 + +a zee +b pan +i 6 +x 0.5271261600918548 +y 0.49322128674835697 + +a eks +b zee +i 7 +x 0.6117840605678454 +y 0.1878849191181694 + +a zee +b wye +i 8 +x 0.5985540091064224 +y 0.976181385699006 + +a hat +b wye +i 9 +x 0.03144187646093577 +y 0.7495507603507059 + +a pan +b wye +i 10 +x 0.5026260055412137 +y 0.9526183602969864 + +mlr --fs auto --xtab cat ./reg_test/input/line-term-crlf.xtab +a pan +b pan +i 1 +x 0.3467901443380824 +y 0.7268028627434533 + +a eks +b pan +i 2 +x 0.7586799647899636 +y 0.5221511083334797 + +a wye +b wye +i 3 +x 0.20460330576630303 +y 0.33831852551664776 + +a eks +b wye +i 4 +x 0.38139939387114097 +y 0.13418874328430463 + +a wye +b pan +i 5 +x 0.5732889198020006 +y 0.8636244699032729 + +a zee +b pan +i 6 +x 0.5271261600918548 +y 0.49322128674835697 + +a eks +b zee +i 7 +x 0.6117840605678454 +y 0.1878849191181694 + +a zee +b wye +i 8 +x 0.5985540091064224 +y 0.976181385699006 + +a hat +b wye +i 9 +x 0.03144187646093577 +y 0.7495507603507059 + +a pan +b wye +i 10 +x 0.5026260055412137 +y 0.9526183602969864 + + +---------------------------------------------------------------- csv +mlr --irs auto --ors lf --csv cat ./reg_test/input/line-term-lf.csv +a,b,i,x,y +pan,pan,1,0.3467901443380824,0.7268028627434533 +eks,pan,2,0.7586799647899636,0.5221511083334797 +wye,wye,3,0.20460330576630303,0.33831852551664776 +eks,wye,4,0.38139939387114097,0.13418874328430463 +wye,pan,5,0.5732889198020006,0.8636244699032729 +zee,pan,6,0.5271261600918548,0.49322128674835697 +eks,zee,7,0.6117840605678454,0.1878849191181694 +zee,wye,8,0.5985540091064224,0.976181385699006 +hat,wye,9,0.03144187646093577,0.7495507603507059 +pan,wye,10,0.5026260055412137,0.9526183602969864 + +mlr --irs auto --ors lf --csv cat ./reg_test/input/line-term-crlf.csv +a,b,i,x,y +pan,pan,1,0.3467901443380824,0.7268028627434533 +eks,pan,2,0.7586799647899636,0.5221511083334797 +wye,wye,3,0.20460330576630303,0.33831852551664776 +eks,wye,4,0.38139939387114097,0.13418874328430463 +wye,pan,5,0.5732889198020006,0.8636244699032729 +zee,pan,6,0.5271261600918548,0.49322128674835697 +eks,zee,7,0.6117840605678454,0.1878849191181694 +zee,wye,8,0.5985540091064224,0.976181385699006 +hat,wye,9,0.03144187646093577,0.7495507603507059 +pan,wye,10,0.5026260055412137,0.9526183602969864 + +mlr --csv cat ./reg_test/input/line-term-lf.csv +a,b,i,x,y +pan,pan,1,0.3467901443380824,0.7268028627434533 +eks,pan,2,0.7586799647899636,0.5221511083334797 +wye,wye,3,0.20460330576630303,0.33831852551664776 +eks,wye,4,0.38139939387114097,0.13418874328430463 +wye,pan,5,0.5732889198020006,0.8636244699032729 +zee,pan,6,0.5271261600918548,0.49322128674835697 +eks,zee,7,0.6117840605678454,0.1878849191181694 +zee,wye,8,0.5985540091064224,0.976181385699006 +hat,wye,9,0.03144187646093577,0.7495507603507059 +pan,wye,10,0.5026260055412137,0.9526183602969864 + +mlr --csv cat ./reg_test/input/line-term-crlf.csv +a,b,i,x,y +pan,pan,1,0.3467901443380824,0.7268028627434533 +eks,pan,2,0.7586799647899636,0.5221511083334797 +wye,wye,3,0.20460330576630303,0.33831852551664776 +eks,wye,4,0.38139939387114097,0.13418874328430463 +wye,pan,5,0.5732889198020006,0.8636244699032729 +zee,pan,6,0.5271261600918548,0.49322128674835697 +eks,zee,7,0.6117840605678454,0.1878849191181694 +zee,wye,8,0.5985540091064224,0.976181385699006 +hat,wye,9,0.03144187646093577,0.7495507603507059 +pan,wye,10,0.5026260055412137,0.9526183602969864 + + +---------------------------------------------------------------- json nowrap nostack +mlr --irs auto --ors lf --json cat ./reg_test/input/line-term-lf.json +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } + +mlr --irs auto --ors lf --json cat ./reg_test/input/line-term-crlf.json +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } + +mlr --json cat ./reg_test/input/line-term-lf.json +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } + +mlr --json cat ./reg_test/input/line-term-crlf.json +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } + + +---------------------------------------------------------------- json yeswrap nostack +mlr --irs auto --ors lf --jlistwrap --json cat ./reg_test/input/line-term-lf-wrap.json +[ +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +,{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +,{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +,{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +,{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +,{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +,{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +,{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +,{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +,{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } +] + +mlr --irs auto --ors lf --jlistwrap --json cat ./reg_test/input/line-term-crlf-wrap.json +[ +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +,{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +,{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +,{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +,{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +,{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +,{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +,{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +,{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +,{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } +] + +mlr --jlistwrap --json cat ./reg_test/input/line-term-lf-wrap.json +[ +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +,{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +,{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +,{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +,{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +,{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +,{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +,{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +,{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +,{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } +] + +mlr --jlistwrap --json cat ./reg_test/input/line-term-crlf-wrap.json +[ +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +,{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +,{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +,{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +,{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +,{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +,{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +,{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +,{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +,{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } +] + + +---------------------------------------------------------------- json nowrap yesstack +mlr --irs auto --json --jvstack cat ./reg_test/input/line-term-lf.json +{ + "a": "pan", + "b": "pan", + "i": 1, + "x": 0.3467901443380824, + "y": 0.7268028627434533 +} +{ + "a": "eks", + "b": "pan", + "i": 2, + "x": 0.7586799647899636, + "y": 0.5221511083334797 +} +{ + "a": "wye", + "b": "wye", + "i": 3, + "x": 0.20460330576630303, + "y": 0.33831852551664776 +} +{ + "a": "eks", + "b": "wye", + "i": 4, + "x": 0.38139939387114097, + "y": 0.13418874328430463 +} +{ + "a": "wye", + "b": "pan", + "i": 5, + "x": 0.5732889198020006, + "y": 0.8636244699032729 +} +{ + "a": "zee", + "b": "pan", + "i": 6, + "x": 0.5271261600918548, + "y": 0.49322128674835697 +} +{ + "a": "eks", + "b": "zee", + "i": 7, + "x": 0.6117840605678454, + "y": 0.1878849191181694 +} +{ + "a": "zee", + "b": "wye", + "i": 8, + "x": 0.5985540091064224, + "y": 0.976181385699006 +} +{ + "a": "hat", + "b": "wye", + "i": 9, + "x": 0.03144187646093577, + "y": 0.7495507603507059 +} +{ + "a": "pan", + "b": "wye", + "i": 10, + "x": 0.5026260055412137, + "y": 0.9526183602969864 +} + +mlr --irs auto --ors lf --json --jvstack cat ./reg_test/input/line-term-crlf.json +{ + "a": "pan", + "b": "pan", + "i": 1, + "x": 0.3467901443380824, + "y": 0.7268028627434533 +} +{ + "a": "eks", + "b": "pan", + "i": 2, + "x": 0.7586799647899636, + "y": 0.5221511083334797 +} +{ + "a": "wye", + "b": "wye", + "i": 3, + "x": 0.20460330576630303, + "y": 0.33831852551664776 +} +{ + "a": "eks", + "b": "wye", + "i": 4, + "x": 0.38139939387114097, + "y": 0.13418874328430463 +} +{ + "a": "wye", + "b": "pan", + "i": 5, + "x": 0.5732889198020006, + "y": 0.8636244699032729 +} +{ + "a": "zee", + "b": "pan", + "i": 6, + "x": 0.5271261600918548, + "y": 0.49322128674835697 +} +{ + "a": "eks", + "b": "zee", + "i": 7, + "x": 0.6117840605678454, + "y": 0.1878849191181694 +} +{ + "a": "zee", + "b": "wye", + "i": 8, + "x": 0.5985540091064224, + "y": 0.976181385699006 +} +{ + "a": "hat", + "b": "wye", + "i": 9, + "x": 0.03144187646093577, + "y": 0.7495507603507059 +} +{ + "a": "pan", + "b": "wye", + "i": 10, + "x": 0.5026260055412137, + "y": 0.9526183602969864 +} + +mlr --json --jvstack cat ./reg_test/input/line-term-lf.json +{ + "a": "pan", + "b": "pan", + "i": 1, + "x": 0.3467901443380824, + "y": 0.7268028627434533 +} +{ + "a": "eks", + "b": "pan", + "i": 2, + "x": 0.7586799647899636, + "y": 0.5221511083334797 +} +{ + "a": "wye", + "b": "wye", + "i": 3, + "x": 0.20460330576630303, + "y": 0.33831852551664776 +} +{ + "a": "eks", + "b": "wye", + "i": 4, + "x": 0.38139939387114097, + "y": 0.13418874328430463 +} +{ + "a": "wye", + "b": "pan", + "i": 5, + "x": 0.5732889198020006, + "y": 0.8636244699032729 +} +{ + "a": "zee", + "b": "pan", + "i": 6, + "x": 0.5271261600918548, + "y": 0.49322128674835697 +} +{ + "a": "eks", + "b": "zee", + "i": 7, + "x": 0.6117840605678454, + "y": 0.1878849191181694 +} +{ + "a": "zee", + "b": "wye", + "i": 8, + "x": 0.5985540091064224, + "y": 0.976181385699006 +} +{ + "a": "hat", + "b": "wye", + "i": 9, + "x": 0.03144187646093577, + "y": 0.7495507603507059 +} +{ + "a": "pan", + "b": "wye", + "i": 10, + "x": 0.5026260055412137, + "y": 0.9526183602969864 +} + +mlr --json --jvstack cat ./reg_test/input/line-term-crlf.json +{ + "a": "pan", + "b": "pan", + "i": 1, + "x": 0.3467901443380824, + "y": 0.7268028627434533 +} +{ + "a": "eks", + "b": "pan", + "i": 2, + "x": 0.7586799647899636, + "y": 0.5221511083334797 +} +{ + "a": "wye", + "b": "wye", + "i": 3, + "x": 0.20460330576630303, + "y": 0.33831852551664776 +} +{ + "a": "eks", + "b": "wye", + "i": 4, + "x": 0.38139939387114097, + "y": 0.13418874328430463 +} +{ + "a": "wye", + "b": "pan", + "i": 5, + "x": 0.5732889198020006, + "y": 0.8636244699032729 +} +{ + "a": "zee", + "b": "pan", + "i": 6, + "x": 0.5271261600918548, + "y": 0.49322128674835697 +} +{ + "a": "eks", + "b": "zee", + "i": 7, + "x": 0.6117840605678454, + "y": 0.1878849191181694 +} +{ + "a": "zee", + "b": "wye", + "i": 8, + "x": 0.5985540091064224, + "y": 0.976181385699006 +} +{ + "a": "hat", + "b": "wye", + "i": 9, + "x": 0.03144187646093577, + "y": 0.7495507603507059 +} +{ + "a": "pan", + "b": "wye", + "i": 10, + "x": 0.5026260055412137, + "y": 0.9526183602969864 +} + + +---------------------------------------------------------------- json yeswrap yesstack +mlr --irs auto --ors lf --jlistwrap --json --jvstack cat ./reg_test/input/line-term-lf-wrap.json +[ +{ + "a": "pan", + "b": "pan", + "i": 1, + "x": 0.3467901443380824, + "y": 0.7268028627434533 +} +,{ + "a": "eks", + "b": "pan", + "i": 2, + "x": 0.7586799647899636, + "y": 0.5221511083334797 +} +,{ + "a": "wye", + "b": "wye", + "i": 3, + "x": 0.20460330576630303, + "y": 0.33831852551664776 +} +,{ + "a": "eks", + "b": "wye", + "i": 4, + "x": 0.38139939387114097, + "y": 0.13418874328430463 +} +,{ + "a": "wye", + "b": "pan", + "i": 5, + "x": 0.5732889198020006, + "y": 0.8636244699032729 +} +,{ + "a": "zee", + "b": "pan", + "i": 6, + "x": 0.5271261600918548, + "y": 0.49322128674835697 +} +,{ + "a": "eks", + "b": "zee", + "i": 7, + "x": 0.6117840605678454, + "y": 0.1878849191181694 +} +,{ + "a": "zee", + "b": "wye", + "i": 8, + "x": 0.5985540091064224, + "y": 0.976181385699006 +} +,{ + "a": "hat", + "b": "wye", + "i": 9, + "x": 0.03144187646093577, + "y": 0.7495507603507059 +} +,{ + "a": "pan", + "b": "wye", + "i": 10, + "x": 0.5026260055412137, + "y": 0.9526183602969864 +} +] + +mlr --irs auto --ors lf --jlistwrap --json --jvstack cat ./reg_test/input/line-term-crlf-wrap.json +[ +{ + "a": "pan", + "b": "pan", + "i": 1, + "x": 0.3467901443380824, + "y": 0.7268028627434533 +} +,{ + "a": "eks", + "b": "pan", + "i": 2, + "x": 0.7586799647899636, + "y": 0.5221511083334797 +} +,{ + "a": "wye", + "b": "wye", + "i": 3, + "x": 0.20460330576630303, + "y": 0.33831852551664776 +} +,{ + "a": "eks", + "b": "wye", + "i": 4, + "x": 0.38139939387114097, + "y": 0.13418874328430463 +} +,{ + "a": "wye", + "b": "pan", + "i": 5, + "x": 0.5732889198020006, + "y": 0.8636244699032729 +} +,{ + "a": "zee", + "b": "pan", + "i": 6, + "x": 0.5271261600918548, + "y": 0.49322128674835697 +} +,{ + "a": "eks", + "b": "zee", + "i": 7, + "x": 0.6117840605678454, + "y": 0.1878849191181694 +} +,{ + "a": "zee", + "b": "wye", + "i": 8, + "x": 0.5985540091064224, + "y": 0.976181385699006 +} +,{ + "a": "hat", + "b": "wye", + "i": 9, + "x": 0.03144187646093577, + "y": 0.7495507603507059 +} +,{ + "a": "pan", + "b": "wye", + "i": 10, + "x": 0.5026260055412137, + "y": 0.9526183602969864 +} +] + +mlr --jlistwrap --json --jvstack cat ./reg_test/input/line-term-lf-wrap.json +[ +{ + "a": "pan", + "b": "pan", + "i": 1, + "x": 0.3467901443380824, + "y": 0.7268028627434533 +} +,{ + "a": "eks", + "b": "pan", + "i": 2, + "x": 0.7586799647899636, + "y": 0.5221511083334797 +} +,{ + "a": "wye", + "b": "wye", + "i": 3, + "x": 0.20460330576630303, + "y": 0.33831852551664776 +} +,{ + "a": "eks", + "b": "wye", + "i": 4, + "x": 0.38139939387114097, + "y": 0.13418874328430463 +} +,{ + "a": "wye", + "b": "pan", + "i": 5, + "x": 0.5732889198020006, + "y": 0.8636244699032729 +} +,{ + "a": "zee", + "b": "pan", + "i": 6, + "x": 0.5271261600918548, + "y": 0.49322128674835697 +} +,{ + "a": "eks", + "b": "zee", + "i": 7, + "x": 0.6117840605678454, + "y": 0.1878849191181694 +} +,{ + "a": "zee", + "b": "wye", + "i": 8, + "x": 0.5985540091064224, + "y": 0.976181385699006 +} +,{ + "a": "hat", + "b": "wye", + "i": 9, + "x": 0.03144187646093577, + "y": 0.7495507603507059 +} +,{ + "a": "pan", + "b": "wye", + "i": 10, + "x": 0.5026260055412137, + "y": 0.9526183602969864 +} +] + +mlr --jlistwrap --json --jvstack cat ./reg_test/input/line-term-crlf-wrap.json +[ +{ + "a": "pan", + "b": "pan", + "i": 1, + "x": 0.3467901443380824, + "y": 0.7268028627434533 +} +,{ + "a": "eks", + "b": "pan", + "i": 2, + "x": 0.7586799647899636, + "y": 0.5221511083334797 +} +,{ + "a": "wye", + "b": "wye", + "i": 3, + "x": 0.20460330576630303, + "y": 0.33831852551664776 +} +,{ + "a": "eks", + "b": "wye", + "i": 4, + "x": 0.38139939387114097, + "y": 0.13418874328430463 +} +,{ + "a": "wye", + "b": "pan", + "i": 5, + "x": 0.5732889198020006, + "y": 0.8636244699032729 +} +,{ + "a": "zee", + "b": "pan", + "i": 6, + "x": 0.5271261600918548, + "y": 0.49322128674835697 +} +,{ + "a": "eks", + "b": "zee", + "i": 7, + "x": 0.6117840605678454, + "y": 0.1878849191181694 +} +,{ + "a": "zee", + "b": "wye", + "i": 8, + "x": 0.5985540091064224, + "y": 0.976181385699006 +} +,{ + "a": "hat", + "b": "wye", + "i": 9, + "x": 0.03144187646093577, + "y": 0.7495507603507059 +} +,{ + "a": "pan", + "b": "wye", + "i": 10, + "x": 0.5026260055412137, + "y": 0.9526183602969864 +} +] + + +---------------------------------------------------------------- json nowrap nostack +mlr --irs auto --ors lf --json cat ./reg_test/input/line-term-lf.json +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } + +mlr --irs auto --ors lf --json cat ./reg_test/input/line-term-crlf.json +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } + +mlr --json cat ./reg_test/input/line-term-lf.json +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } + +mlr --json cat ./reg_test/input/line-term-crlf.json +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } + + +---------------------------------------------------------------- json yeswrap nostack +mlr --irs auto --ors lf --jlistwrap --json cat ./reg_test/input/line-term-lf-wrap.json +[ +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +,{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +,{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +,{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +,{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +,{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +,{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +,{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +,{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +,{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } +] + +mlr --irs auto --ors lf --jlistwrap --json cat ./reg_test/input/line-term-crlf-wrap.json +[ +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +,{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +,{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +,{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +,{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +,{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +,{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +,{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +,{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +,{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } +] + +mlr --jlistwrap --json cat ./reg_test/input/line-term-lf-wrap.json +[ +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +,{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +,{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +,{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +,{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +,{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +,{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +,{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +,{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +,{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } +] + +mlr --jlistwrap --json cat ./reg_test/input/line-term-crlf-wrap.json +[ +{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 } +,{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 } +,{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 } +,{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 } +,{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 } +,{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 } +,{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 } +,{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 } +,{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 } +,{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 } +] + + +---------------------------------------------------------------- json nowrap yesstack +mlr --irs auto --ors lf --json --jvstack cat ./reg_test/input/line-term-lf.json +{ + "a": "pan", + "b": "pan", + "i": 1, + "x": 0.3467901443380824, + "y": 0.7268028627434533 +} +{ + "a": "eks", + "b": "pan", + "i": 2, + "x": 0.7586799647899636, + "y": 0.5221511083334797 +} +{ + "a": "wye", + "b": "wye", + "i": 3, + "x": 0.20460330576630303, + "y": 0.33831852551664776 +} +{ + "a": "eks", + "b": "wye", + "i": 4, + "x": 0.38139939387114097, + "y": 0.13418874328430463 +} +{ + "a": "wye", + "b": "pan", + "i": 5, + "x": 0.5732889198020006, + "y": 0.8636244699032729 +} +{ + "a": "zee", + "b": "pan", + "i": 6, + "x": 0.5271261600918548, + "y": 0.49322128674835697 +} +{ + "a": "eks", + "b": "zee", + "i": 7, + "x": 0.6117840605678454, + "y": 0.1878849191181694 +} +{ + "a": "zee", + "b": "wye", + "i": 8, + "x": 0.5985540091064224, + "y": 0.976181385699006 +} +{ + "a": "hat", + "b": "wye", + "i": 9, + "x": 0.03144187646093577, + "y": 0.7495507603507059 +} +{ + "a": "pan", + "b": "wye", + "i": 10, + "x": 0.5026260055412137, + "y": 0.9526183602969864 +} + +mlr --irs auto --ors lf --json --jvstack cat ./reg_test/input/line-term-crlf.json +{ + "a": "pan", + "b": "pan", + "i": 1, + "x": 0.3467901443380824, + "y": 0.7268028627434533 +} +{ + "a": "eks", + "b": "pan", + "i": 2, + "x": 0.7586799647899636, + "y": 0.5221511083334797 +} +{ + "a": "wye", + "b": "wye", + "i": 3, + "x": 0.20460330576630303, + "y": 0.33831852551664776 +} +{ + "a": "eks", + "b": "wye", + "i": 4, + "x": 0.38139939387114097, + "y": 0.13418874328430463 +} +{ + "a": "wye", + "b": "pan", + "i": 5, + "x": 0.5732889198020006, + "y": 0.8636244699032729 +} +{ + "a": "zee", + "b": "pan", + "i": 6, + "x": 0.5271261600918548, + "y": 0.49322128674835697 +} +{ + "a": "eks", + "b": "zee", + "i": 7, + "x": 0.6117840605678454, + "y": 0.1878849191181694 +} +{ + "a": "zee", + "b": "wye", + "i": 8, + "x": 0.5985540091064224, + "y": 0.976181385699006 +} +{ + "a": "hat", + "b": "wye", + "i": 9, + "x": 0.03144187646093577, + "y": 0.7495507603507059 +} +{ + "a": "pan", + "b": "wye", + "i": 10, + "x": 0.5026260055412137, + "y": 0.9526183602969864 +} + +mlr --json --jvstack cat ./reg_test/input/line-term-lf.json +{ + "a": "pan", + "b": "pan", + "i": 1, + "x": 0.3467901443380824, + "y": 0.7268028627434533 +} +{ + "a": "eks", + "b": "pan", + "i": 2, + "x": 0.7586799647899636, + "y": 0.5221511083334797 +} +{ + "a": "wye", + "b": "wye", + "i": 3, + "x": 0.20460330576630303, + "y": 0.33831852551664776 +} +{ + "a": "eks", + "b": "wye", + "i": 4, + "x": 0.38139939387114097, + "y": 0.13418874328430463 +} +{ + "a": "wye", + "b": "pan", + "i": 5, + "x": 0.5732889198020006, + "y": 0.8636244699032729 +} +{ + "a": "zee", + "b": "pan", + "i": 6, + "x": 0.5271261600918548, + "y": 0.49322128674835697 +} +{ + "a": "eks", + "b": "zee", + "i": 7, + "x": 0.6117840605678454, + "y": 0.1878849191181694 +} +{ + "a": "zee", + "b": "wye", + "i": 8, + "x": 0.5985540091064224, + "y": 0.976181385699006 +} +{ + "a": "hat", + "b": "wye", + "i": 9, + "x": 0.03144187646093577, + "y": 0.7495507603507059 +} +{ + "a": "pan", + "b": "wye", + "i": 10, + "x": 0.5026260055412137, + "y": 0.9526183602969864 +} + +mlr --json --jvstack cat ./reg_test/input/line-term-crlf.json +{ + "a": "pan", + "b": "pan", + "i": 1, + "x": 0.3467901443380824, + "y": 0.7268028627434533 +} +{ + "a": "eks", + "b": "pan", + "i": 2, + "x": 0.7586799647899636, + "y": 0.5221511083334797 +} +{ + "a": "wye", + "b": "wye", + "i": 3, + "x": 0.20460330576630303, + "y": 0.33831852551664776 +} +{ + "a": "eks", + "b": "wye", + "i": 4, + "x": 0.38139939387114097, + "y": 0.13418874328430463 +} +{ + "a": "wye", + "b": "pan", + "i": 5, + "x": 0.5732889198020006, + "y": 0.8636244699032729 +} +{ + "a": "zee", + "b": "pan", + "i": 6, + "x": 0.5271261600918548, + "y": 0.49322128674835697 +} +{ + "a": "eks", + "b": "zee", + "i": 7, + "x": 0.6117840605678454, + "y": 0.1878849191181694 +} +{ + "a": "zee", + "b": "wye", + "i": 8, + "x": 0.5985540091064224, + "y": 0.976181385699006 +} +{ + "a": "hat", + "b": "wye", + "i": 9, + "x": 0.03144187646093577, + "y": 0.7495507603507059 +} +{ + "a": "pan", + "b": "wye", + "i": 10, + "x": 0.5026260055412137, + "y": 0.9526183602969864 +} + + +---------------------------------------------------------------- json yeswrap yesstack +mlr --irs auto --ors lf --jlistwrap --json --jvstack cat ./reg_test/input/line-term-lf-wrap.json +[ +{ + "a": "pan", + "b": "pan", + "i": 1, + "x": 0.3467901443380824, + "y": 0.7268028627434533 +} +,{ + "a": "eks", + "b": "pan", + "i": 2, + "x": 0.7586799647899636, + "y": 0.5221511083334797 +} +,{ + "a": "wye", + "b": "wye", + "i": 3, + "x": 0.20460330576630303, + "y": 0.33831852551664776 +} +,{ + "a": "eks", + "b": "wye", + "i": 4, + "x": 0.38139939387114097, + "y": 0.13418874328430463 +} +,{ + "a": "wye", + "b": "pan", + "i": 5, + "x": 0.5732889198020006, + "y": 0.8636244699032729 +} +,{ + "a": "zee", + "b": "pan", + "i": 6, + "x": 0.5271261600918548, + "y": 0.49322128674835697 +} +,{ + "a": "eks", + "b": "zee", + "i": 7, + "x": 0.6117840605678454, + "y": 0.1878849191181694 +} +,{ + "a": "zee", + "b": "wye", + "i": 8, + "x": 0.5985540091064224, + "y": 0.976181385699006 +} +,{ + "a": "hat", + "b": "wye", + "i": 9, + "x": 0.03144187646093577, + "y": 0.7495507603507059 +} +,{ + "a": "pan", + "b": "wye", + "i": 10, + "x": 0.5026260055412137, + "y": 0.9526183602969864 +} +] + +mlr --irs auto --ors lf --jlistwrap --json --jvstack cat ./reg_test/input/line-term-crlf-wrap.json +[ +{ + "a": "pan", + "b": "pan", + "i": 1, + "x": 0.3467901443380824, + "y": 0.7268028627434533 +} +,{ + "a": "eks", + "b": "pan", + "i": 2, + "x": 0.7586799647899636, + "y": 0.5221511083334797 +} +,{ + "a": "wye", + "b": "wye", + "i": 3, + "x": 0.20460330576630303, + "y": 0.33831852551664776 +} +,{ + "a": "eks", + "b": "wye", + "i": 4, + "x": 0.38139939387114097, + "y": 0.13418874328430463 +} +,{ + "a": "wye", + "b": "pan", + "i": 5, + "x": 0.5732889198020006, + "y": 0.8636244699032729 +} +,{ + "a": "zee", + "b": "pan", + "i": 6, + "x": 0.5271261600918548, + "y": 0.49322128674835697 +} +,{ + "a": "eks", + "b": "zee", + "i": 7, + "x": 0.6117840605678454, + "y": 0.1878849191181694 +} +,{ + "a": "zee", + "b": "wye", + "i": 8, + "x": 0.5985540091064224, + "y": 0.976181385699006 +} +,{ + "a": "hat", + "b": "wye", + "i": 9, + "x": 0.03144187646093577, + "y": 0.7495507603507059 +} +,{ + "a": "pan", + "b": "wye", + "i": 10, + "x": 0.5026260055412137, + "y": 0.9526183602969864 +} +] + +mlr --jlistwrap --json --jvstack cat ./reg_test/input/line-term-lf-wrap.json +[ +{ + "a": "pan", + "b": "pan", + "i": 1, + "x": 0.3467901443380824, + "y": 0.7268028627434533 +} +,{ + "a": "eks", + "b": "pan", + "i": 2, + "x": 0.7586799647899636, + "y": 0.5221511083334797 +} +,{ + "a": "wye", + "b": "wye", + "i": 3, + "x": 0.20460330576630303, + "y": 0.33831852551664776 +} +,{ + "a": "eks", + "b": "wye", + "i": 4, + "x": 0.38139939387114097, + "y": 0.13418874328430463 +} +,{ + "a": "wye", + "b": "pan", + "i": 5, + "x": 0.5732889198020006, + "y": 0.8636244699032729 +} +,{ + "a": "zee", + "b": "pan", + "i": 6, + "x": 0.5271261600918548, + "y": 0.49322128674835697 +} +,{ + "a": "eks", + "b": "zee", + "i": 7, + "x": 0.6117840605678454, + "y": 0.1878849191181694 +} +,{ + "a": "zee", + "b": "wye", + "i": 8, + "x": 0.5985540091064224, + "y": 0.976181385699006 +} +,{ + "a": "hat", + "b": "wye", + "i": 9, + "x": 0.03144187646093577, + "y": 0.7495507603507059 +} +,{ + "a": "pan", + "b": "wye", + "i": 10, + "x": 0.5026260055412137, + "y": 0.9526183602969864 +} +] + +mlr --jlistwrap --json --jvstack cat ./reg_test/input/line-term-crlf-wrap.json +[ +{ + "a": "pan", + "b": "pan", + "i": 1, + "x": 0.3467901443380824, + "y": 0.7268028627434533 +} +,{ + "a": "eks", + "b": "pan", + "i": 2, + "x": 0.7586799647899636, + "y": 0.5221511083334797 +} +,{ + "a": "wye", + "b": "wye", + "i": 3, + "x": 0.20460330576630303, + "y": 0.33831852551664776 +} +,{ + "a": "eks", + "b": "wye", + "i": 4, + "x": 0.38139939387114097, + "y": 0.13418874328430463 +} +,{ + "a": "wye", + "b": "pan", + "i": 5, + "x": 0.5732889198020006, + "y": 0.8636244699032729 +} +,{ + "a": "zee", + "b": "pan", + "i": 6, + "x": 0.5271261600918548, + "y": 0.49322128674835697 +} +,{ + "a": "eks", + "b": "zee", + "i": 7, + "x": 0.6117840605678454, + "y": 0.1878849191181694 +} +,{ + "a": "zee", + "b": "wye", + "i": 8, + "x": 0.5985540091064224, + "y": 0.976181385699006 +} +,{ + "a": "hat", + "b": "wye", + "i": 9, + "x": 0.03144187646093577, + "y": 0.7495507603507059 +} +,{ + "a": "pan", + "b": "wye", + "i": 10, + "x": 0.5026260055412137, + "y": 0.9526183602969864 +} +] + mlr lecat --mono hello[CR]there[CR]how[CR]are[CR]you[CR]mlr lecat --mono hello[LF]