mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-21 02:23:20 +00:00
Merge branch 'master' of git+ssh://github.com/johnkerl/miller
This commit is contained in:
commit
e2ec72bf82
11 changed files with 33 additions and 33 deletions
|
|
@ -881,7 +881,7 @@ static void main_usage_comments_in_data(FILE* o, char* argv0) {
|
|||
|
||||
static void main_usage_format_conversion_keystroke_saver_options(FILE* o, char* argv0) {
|
||||
fprintf(o, "As keystroke-savers for format-conversion you may use the following:\n");
|
||||
fprintf(o, " --c2t --c2d --c2n --c2j --c2x --c2p --c2m\n");
|
||||
fprintf(o, " --c2t --c2d --c2n --c2j --c2x --c2p --c2m\n");
|
||||
fprintf(o, " --t2c --t2d --t2n --t2j --t2x --t2p --t2m\n");
|
||||
fprintf(o, " --d2c --d2t --d2n --d2j --d2x --d2p --d2m\n");
|
||||
fprintf(o, " --n2c --n2t --n2d --n2j --n2x --n2p --n2m\n");
|
||||
|
|
|
|||
|
|
@ -918,7 +918,7 @@ date,qoh
|
|||
<div class="pokipanel">
|
||||
<pre>
|
||||
$ wc -l data/miss-date.csv
|
||||
1372 data/miss-date.csv
|
||||
1372 data/miss-date.csv
|
||||
</pre>
|
||||
</div>
|
||||
<p/>
|
||||
|
|
|
|||
|
|
@ -333,7 +333,7 @@ St. Johns - - -
|
|||
<div class="pokipanel">
|
||||
<pre>
|
||||
$ wc -l data/colored-shapes.dkvp
|
||||
10078 data/colored-shapes.dkvp
|
||||
10078 data/colored-shapes.dkvp
|
||||
</pre>
|
||||
</div>
|
||||
<p/>
|
||||
|
|
|
|||
|
|
@ -330,11 +330,11 @@ Run as-is:
|
|||
<div class="pokipanel">
|
||||
<pre>
|
||||
$ python polyglot-dkvp-io/example.py < data/small
|
||||
a=pan,b=pan,i=1,y=0.726802862743,ab=panpan,iy=1.72680286274,ta=str,tb=str,ti=int,ty=float,tab=str,tiy=float
|
||||
a=eks,b=pan,i=2,y=0.522151108333,ab=ekspan,iy=2.52215110833,ta=str,tb=str,ti=int,ty=float,tab=str,tiy=float
|
||||
a=wye,b=wye,i=3,y=0.338318525517,ab=wyewye,iy=3.33831852552,ta=str,tb=str,ti=int,ty=float,tab=str,tiy=float
|
||||
a=eks,b=wye,i=4,y=0.134188743284,ab=ekswye,iy=4.13418874328,ta=str,tb=str,ti=int,ty=float,tab=str,tiy=float
|
||||
a=wye,b=pan,i=5,y=0.863624469903,ab=wyepan,iy=5.8636244699,ta=str,tb=str,ti=int,ty=float,tab=str,tiy=float
|
||||
a=pan,b=pan,i=1,y=0.7268028627434533,ab=panpan,iy=1.7268028627434533,ta=str,tb=str,ti=int,ty=float,tab=str,tiy=float
|
||||
a=eks,b=pan,i=2,y=0.5221511083334797,ab=ekspan,iy=2.5221511083334796,ta=str,tb=str,ti=int,ty=float,tab=str,tiy=float
|
||||
a=wye,b=wye,i=3,y=0.33831852551664776,ab=wyewye,iy=3.3383185255166477,ta=str,tb=str,ti=int,ty=float,tab=str,tiy=float
|
||||
a=eks,b=wye,i=4,y=0.13418874328430463,ab=ekswye,iy=4.134188743284304,ta=str,tb=str,ti=int,ty=float,tab=str,tiy=float
|
||||
a=wye,b=pan,i=5,y=0.8636244699032729,ab=wyepan,iy=5.863624469903273,ta=str,tb=str,ti=int,ty=float,tab=str,tiy=float
|
||||
</pre>
|
||||
</div>
|
||||
<p/>
|
||||
|
|
@ -345,12 +345,12 @@ Run as-is, then pipe to Miller for pretty-printing:
|
|||
<div class="pokipanel">
|
||||
<pre>
|
||||
$ python polyglot-dkvp-io/example.py < data/small | mlr --opprint cat
|
||||
a b i y ab iy ta tb ti ty tab tiy
|
||||
pan pan 1 0.726802862743 panpan 1.72680286274 str str int float str float
|
||||
eks pan 2 0.522151108333 ekspan 2.52215110833 str str int float str float
|
||||
wye wye 3 0.338318525517 wyewye 3.33831852552 str str int float str float
|
||||
eks wye 4 0.134188743284 ekswye 4.13418874328 str str int float str float
|
||||
wye pan 5 0.863624469903 wyepan 5.8636244699 str str int float str float
|
||||
a b i y ab iy ta tb ti ty tab tiy
|
||||
pan pan 1 0.7268028627434533 panpan 1.7268028627434533 str str int float str float
|
||||
eks pan 2 0.5221511083334797 ekspan 2.5221511083334796 str str int float str float
|
||||
wye wye 3 0.33831852551664776 wyewye 3.3383185255166477 str str int float str float
|
||||
eks wye 4 0.13418874328430463 ekswye 4.134188743284304 str str int float str float
|
||||
wye pan 5 0.8636244699032729 wyepan 5.863624469903273 str str int float str float
|
||||
</pre>
|
||||
</div>
|
||||
<p/>
|
||||
|
|
@ -462,11 +462,11 @@ Run as-is:
|
|||
<div class="pokipanel">
|
||||
<pre>
|
||||
$ ruby -I./polyglot-dkvp-io polyglot-dkvp-io/example.rb data/small
|
||||
a=pan,b=pan,i=1,y=0.7268028627434533,ab=panpan,iy=1.7268028627434533,ta=String,tb=String,ti=Integer,ty=Float,tab=String,tiy=Float
|
||||
a=eks,b=pan,i=2,y=0.5221511083334797,ab=ekspan,iy=2.5221511083334796,ta=String,tb=String,ti=Integer,ty=Float,tab=String,tiy=Float
|
||||
a=wye,b=wye,i=3,y=0.33831852551664776,ab=wyewye,iy=3.3383185255166477,ta=String,tb=String,ti=Integer,ty=Float,tab=String,tiy=Float
|
||||
a=eks,b=wye,i=4,y=0.13418874328430463,ab=ekswye,iy=4.134188743284304,ta=String,tb=String,ti=Integer,ty=Float,tab=String,tiy=Float
|
||||
a=wye,b=pan,i=5,y=0.8636244699032729,ab=wyepan,iy=5.863624469903273,ta=String,tb=String,ti=Integer,ty=Float,tab=String,tiy=Float
|
||||
a=pan,b=pan,i=1,y=0.7268028627434533,ab=panpan,iy=1.7268028627434533,ta=String,tb=String,ti=Fixnum,ty=Float,tab=String,tiy=Float
|
||||
a=eks,b=pan,i=2,y=0.5221511083334797,ab=ekspan,iy=2.5221511083334796,ta=String,tb=String,ti=Fixnum,ty=Float,tab=String,tiy=Float
|
||||
a=wye,b=wye,i=3,y=0.33831852551664776,ab=wyewye,iy=3.3383185255166477,ta=String,tb=String,ti=Fixnum,ty=Float,tab=String,tiy=Float
|
||||
a=eks,b=wye,i=4,y=0.13418874328430463,ab=ekswye,iy=4.134188743284304,ta=String,tb=String,ti=Fixnum,ty=Float,tab=String,tiy=Float
|
||||
a=wye,b=pan,i=5,y=0.8636244699032729,ab=wyepan,iy=5.863624469903273,ta=String,tb=String,ti=Fixnum,ty=Float,tab=String,tiy=Float
|
||||
</pre>
|
||||
</div>
|
||||
<p/>
|
||||
|
|
@ -477,12 +477,12 @@ Run as-is, then pipe to Miller for pretty-printing:
|
|||
<div class="pokipanel">
|
||||
<pre>
|
||||
$ ruby -I./polyglot-dkvp-io polyglot-dkvp-io/example.rb data/small | mlr --opprint cat
|
||||
a b i y ab iy ta tb ti ty tab tiy
|
||||
pan pan 1 0.7268028627434533 panpan 1.7268028627434533 String String Integer Float String Float
|
||||
eks pan 2 0.5221511083334797 ekspan 2.5221511083334796 String String Integer Float String Float
|
||||
wye wye 3 0.33831852551664776 wyewye 3.3383185255166477 String String Integer Float String Float
|
||||
eks wye 4 0.13418874328430463 ekswye 4.134188743284304 String String Integer Float String Float
|
||||
wye pan 5 0.8636244699032729 wyepan 5.863624469903273 String String Integer Float String Float
|
||||
a b i y ab iy ta tb ti ty tab tiy
|
||||
pan pan 1 0.7268028627434533 panpan 1.7268028627434533 String String Fixnum Float String Float
|
||||
eks pan 2 0.5221511083334797 ekspan 2.5221511083334796 String String Fixnum Float String Float
|
||||
wye wye 3 0.33831852551664776 wyewye 3.3383185255166477 String String Fixnum Float String Float
|
||||
eks wye 4 0.13418874328430463 ekswye 4.134188743284304 String String Fixnum Float String Float
|
||||
wye pan 5 0.8636244699032729 wyepan 5.863624469903273 String String Fixnum Float String Float
|
||||
</pre>
|
||||
</div>
|
||||
<p/>
|
||||
|
|
|
|||
|
|
@ -981,7 +981,7 @@ For a complete list:
|
|||
<pre>
|
||||
$ mlr --usage-format-conversion-keystroke-saver-options
|
||||
As keystroke-savers for format-conversion you may use the following:
|
||||
--c2t --c2d --c2n --c2j --c2x --c2p --c2m
|
||||
--c2t --c2d --c2n --c2j --c2x --c2p --c2m
|
||||
--t2c --t2d --t2n --t2j --t2x --t2p --t2m
|
||||
--d2c --d2t --d2n --d2j --d2x --d2p --d2m
|
||||
--n2c --n2t --n2d --n2j --n2x --n2p --n2m
|
||||
|
|
|
|||
|
|
@ -444,7 +444,7 @@ OPTIONS
|
|||
|
||||
FORMAT-CONVERSION KEYSTROKE-SAVERS
|
||||
As keystroke-savers for format-conversion you may use the following:
|
||||
--c2t --c2d --c2n --c2j --c2x --c2p --c2m
|
||||
--c2t --c2d --c2n --c2j --c2x --c2p --c2m
|
||||
--t2c --t2d --t2n --t2j --t2x --t2p --t2m
|
||||
--d2c --d2t --d2n --d2j --d2x --d2p --d2m
|
||||
--n2c --n2t --n2d --n2j --n2x --n2p --n2m
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ OPTIONS
|
|||
|
||||
FORMAT-CONVERSION KEYSTROKE-SAVERS
|
||||
As keystroke-savers for format-conversion you may use the following:
|
||||
--c2t --c2d --c2n --c2j --c2x --c2p --c2m
|
||||
--c2t --c2d --c2n --c2j --c2x --c2p --c2m
|
||||
--t2c --t2d --t2n --t2j --t2x --t2p --t2m
|
||||
--d2c --d2t --d2n --d2j --d2x --d2p --d2m
|
||||
--n2c --n2t --n2d --n2j --n2x --n2p --n2m
|
||||
|
|
|
|||
|
|
@ -317,7 +317,7 @@ Notes:
|
|||
.\}
|
||||
.nf
|
||||
As keystroke-savers for format-conversion you may use the following:
|
||||
--c2t --c2d --c2n --c2j --c2x --c2p --c2m
|
||||
--c2t --c2d --c2n --c2j --c2x --c2p --c2m
|
||||
--t2c --t2d --t2n --t2j --t2x --t2p --t2m
|
||||
--d2c --d2t --d2n --d2j --d2x --d2p --d2m
|
||||
--n2c --n2t --n2d --n2j --n2x --n2p --n2m
|
||||
|
|
|
|||
|
|
@ -2149,7 +2149,7 @@ subsequent assignments are done unconditionally:
|
|||
<pre>
|
||||
$ mlr put '$x > 0.0; $y = log10($x); $z = sqrt($y)' data/put-gating-example-1.dkvp
|
||||
x=-1,y=nan,z=nan
|
||||
x=0,y=-inf,z=-nan
|
||||
x=0,y=-inf,z=nan
|
||||
x=1,y=0.000000,z=0.000000
|
||||
x=2,y=0.301030,z=0.548662
|
||||
x=3,y=0.477121,z=0.690740
|
||||
|
|
|
|||
|
|
@ -4083,7 +4083,7 @@ Options:
|
|||
<div class="pokipanel">
|
||||
<pre>
|
||||
$ wc -l data/colored-shapes.dkvp
|
||||
10078 data/colored-shapes.dkvp
|
||||
10078 data/colored-shapes.dkvp
|
||||
</pre>
|
||||
</div>
|
||||
<p/>
|
||||
|
|
@ -4255,7 +4255,7 @@ color=purple,shape=square,flag=0
|
|||
<div class="pokipanel">
|
||||
<pre>
|
||||
$ wc -l data/repeats.dkvp
|
||||
57 data/repeats.dkvp
|
||||
57 data/repeats.dkvp
|
||||
</pre>
|
||||
</div>
|
||||
<p/>
|
||||
|
|
|
|||
|
|
@ -1576,7 +1576,7 @@ Notes:
|
|||
|
||||
Format-conversion keystroke-saver options, for input, output, or both:
|
||||
As keystroke-savers for format-conversion you may use the following:
|
||||
--c2t --c2d --c2n --c2j --c2x --c2p --c2m
|
||||
--c2t --c2d --c2n --c2j --c2x --c2p --c2m
|
||||
--t2c --t2d --t2n --t2j --t2x --t2p --t2m
|
||||
--d2c --d2t --d2n --d2j --d2x --d2p --d2m
|
||||
--n2c --n2t --n2d --n2j --n2x --n2p --n2m
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue