mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-27 01:36:10 +00:00
doc neaten
This commit is contained in:
parent
9d01602e5c
commit
c9ff3676e5
27 changed files with 175 additions and 127 deletions
|
|
@ -419,6 +419,8 @@ DOC:
|
|||
? tail -g
|
||||
- uniq -g
|
||||
|
||||
! stats1 antimode
|
||||
|
||||
! more than 'syntax error' from lemon-parse failures ... lemon API research
|
||||
|
||||
* stats1 for strings: min/max/percentiles. note count/mode already work.
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<p/>This is simply a copy of what you should see on running <tt>man mlr</tt> at
|
||||
<p/>This is simply a copy of what you should see on running <b>man mlr</b> at
|
||||
a command prompt, once Miller is installed on your system.
|
||||
|
||||
POKI_INCLUDE_ESCAPED(manpage.txt)HERE
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ cannot use these names for local variables.
|
|||
defined by Miller.
|
||||
|
||||
<p/>Miller supports the following five built-in variables for <a
|
||||
href="#filter"><tt>filter</tt></a> and <tt>put</tt>, all <tt>awk</tt>-inspired:
|
||||
href="reference-verbs.html#filter"><tt>filter</tt></a> and <tt>put</tt>, all <tt>awk</tt>-inspired:
|
||||
<tt>NF</tt>, <tt>NR</tt>, <tt>FNR</tt>, <tt>FILENUM</tt>, and
|
||||
<tt>FILENAME</tt>, as well as the mathematical constants <tt>PI</tt> and
|
||||
<tt>E</tt>. Lastly, the <tt>ENV</tt> hashmap allows read access to environment
|
||||
|
|
@ -179,7 +179,7 @@ not be assigned to: <tt>NR=100</tt> is a syntax error.
|
|||
<h2>Field names</h2>
|
||||
|
||||
<p/>Field names must be specified using a <tt>$</tt> in <tt>filter</tt> and <a
|
||||
href="#put"><tt>put</tt></a> expressions, even though the dollar signs
|
||||
href="reference-verbs.html#put"><tt>put</tt></a> expressions, even though the dollar signs
|
||||
don’t appear in the data stream. For integer-indexed data, this looks
|
||||
like <tt>awk</tt>’s <tt>$1,$2,$3</tt>, except that Miller allows
|
||||
non-numeric names such as <tt>$quantity</tt> or <tt>$hostname</tt>. (Likewise,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
POKI_PUT_TOC_HERE
|
||||
|
||||
When you type <tt>mlr {something} myfile.dat</tt>, the <tt>{something}</tt>
|
||||
part is called a <b>verb</b>. It specifies how you want to transform your data.
|
||||
(See also <a href="reference.html#Command_overview">here</a> for a breakdown.)
|
||||
The following is an alphabetical list of verbs with their descriptions.
|
||||
|
||||
<!-- ================================================================ -->
|
||||
<h1>bar</h1>
|
||||
|
||||
|
|
|
|||
|
|
@ -17,14 +17,16 @@ POKI_INCLUDE_ESCAPED(data/subcommand-example.txt)HERE
|
|||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#cat"><tt>cat</tt></a>,
|
||||
<a href="#cut"><tt>cut</tt></a>,
|
||||
<a href="#head"><tt>head</tt></a>,
|
||||
<a href="#sort"><tt>sort</tt></a>,
|
||||
<a href="#tac"><tt>tac</tt></a>,
|
||||
<a href="#tail"><tt>tail</tt></a>,
|
||||
<a href="#top"><tt>top</tt></a>,
|
||||
<a href="#uniq"><tt>uniq</tt></a>
|
||||
<a href="reference-verbs.html#cat"><tt>cat</tt></a>,
|
||||
<a href="reference-verbs.html#cut"><tt>cut</tt></a>,
|
||||
<a href="reference-verbs.html#grep"><tt>grep</tt></a>,
|
||||
<a href="reference-verbs.html#head"><tt>head</tt></a>,
|
||||
<a href="reference-verbs.html#join"><tt>join</tt></a>,
|
||||
<a href="reference-verbs.html#sort"><tt>sort</tt></a>,
|
||||
<a href="reference-verbs.html#tac"><tt>tac</tt></a>,
|
||||
<a href="reference-verbs.html#tail"><tt>tail</tt></a>,
|
||||
<a href="reference-verbs.html#top"><tt>top</tt></a>,
|
||||
<a href="reference-verbs.html#uniq"><tt>uniq</tt></a>
|
||||
</td>
|
||||
<td> Analogs of their Unix-toolkit namesakes, discussed below as well as in
|
||||
POKI_PUT_LINK_FOR_PAGE(feature-comparison.html)HERE </td>
|
||||
|
|
@ -32,27 +34,37 @@ POKI_INCLUDE_ESCAPED(data/subcommand-example.txt)HERE
|
|||
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#filter"><tt>filter</tt></a>,
|
||||
<a href="#put"><tt>put</tt></a>,
|
||||
<a href="#step"><tt>step</tt></a>
|
||||
<a href="reference-verbs.html#filter"><tt>filter</tt></a>,
|
||||
<a href="reference-verbs.html#put"><tt>put</tt></a>,
|
||||
<a href="reference-verbs.html#sec2gmt"><tt>sec2gmt</tt></a>,
|
||||
<a href="reference-verbs.html#sec2gmtdate"><tt>sec2gmtdate</tt></a>,
|
||||
<a href="reference-verbs.html#step"><tt>step</tt></a>,
|
||||
<a href="reference-verbs.html#tee"><tt>tee</tt></a>
|
||||
</td>
|
||||
<td> <tt>awk</tt>-like functionality </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#histogram"><tt>histogram</tt></a>,
|
||||
<a href="#stats1"><tt>stats1</tt></a>,
|
||||
<a href="#stats2"><tt>stats2</tt></a>
|
||||
<a href="reference-verbs.html#bar"><tt>bar</tt></a>,
|
||||
<a href="reference-verbs.html#bootstrap"><tt>bootstrap</tt></a>,
|
||||
<a href="reference-verbs.html#decimate"><tt>decimate</tt></a>,
|
||||
<a href="reference-verbs.html#histogram"><tt>histogram</tt></a>,
|
||||
<a href="reference-verbs.html#least-frequent"><tt>least-frequent</tt></a>,
|
||||
<a href="reference-verbs.html#most-frequent"><tt>most-frequent</tt></a>,
|
||||
<a href="reference-verbs.html#sample"><tt>sample</tt></a>,
|
||||
<a href="reference-verbs.html#shuffle"><tt>shuffle</tt></a>,
|
||||
<a href="reference-verbs.html#stats1"><tt>stats1</tt></a>,
|
||||
<a href="reference-verbs.html#stats2"><tt>stats2</tt></a>
|
||||
</td>
|
||||
<td> Statistically oriented </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#group-by"><tt>group-by</tt></a>,
|
||||
<a href="#group-like"><tt>group-like</tt></a>,
|
||||
<a href="#having-fields"><tt>having-fields</tt></a>
|
||||
<a href="reference-verbs.html#group-by"><tt>group-by</tt></a>,
|
||||
<a href="reference-verbs.html#group-like"><tt>group-like</tt></a>,
|
||||
<a href="reference-verbs.html#having-fields"><tt>having-fields</tt></a>
|
||||
</td>
|
||||
<td> Particularly oriented toward POKI_PUT_LINK_FOR_PAGE(record-heterogeneity.html)HERE, although
|
||||
all Miller commands can handle heterogeneous records
|
||||
|
|
@ -60,15 +72,21 @@ POKI_INCLUDE_ESCAPED(data/subcommand-example.txt)HERE
|
|||
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#count-distinct"><tt>count-distinct</tt></a>,
|
||||
<a href="#label"><tt>label</tt></a>,
|
||||
<a href="#regularize"><tt>rename</tt></a>,
|
||||
<a href="#rename"><tt>rename</tt></a>,
|
||||
<a href="#reorder"><tt>reorder</tt></a>
|
||||
<a href="reference-verbs.html#check"><tt>check</tt></a>,
|
||||
<a href="reference-verbs.html#count-distinct"><tt>count-distinct</tt></a>,
|
||||
<a href="reference-verbs.html#label"><tt>label</tt></a>,
|
||||
<a href="reference-verbs.html#merge-fields"><tt>merge-fields</tt></a>,
|
||||
<a href="reference-verbs.html#nest"><tt>nest</tt></a>,
|
||||
<a href="reference-verbs.html#nothing"><tt>nothing</tt></a>,
|
||||
<a href="reference-verbs.html#regularize"><tt>rename</tt></a>,
|
||||
<a href="reference-verbs.html#rename"><tt>rename</tt></a>,
|
||||
<a href="reference-verbs.html#reorder"><tt>reorder</tt></a>,
|
||||
<a href="reference-verbs.html#reshape"><tt>reshape</tt></a>,
|
||||
<a href="reference-verbs.html#seqgen"><tt>seqgen</tt></a>
|
||||
</td>
|
||||
<td> These draw from other sources (see also POKI_PUT_LINK_FOR_PAGE(originality.html)HERE):
|
||||
<a href="#count-distinct"><tt>count-distinct</tt></a> is SQL-ish, and
|
||||
<a href="#rename"><tt>rename</tt></a> can be done by <tt>sed</tt> (which does it faster:
|
||||
<a href="reference-verbs.html#count-distinct"><tt>count-distinct</tt></a> is SQL-ish, and
|
||||
<a href="reference-verbs.html#rename"><tt>rename</tt></a> can be done by <tt>sed</tt> (which does it faster:
|
||||
see POKI_PUT_LINK_FOR_PAGE(performance.html)HERE).
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html"><b>Cookbook</b></a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
@ -607,33 +607,33 @@ $ mlr --ofmt '%.9lf' --opprint seqgen --start 1 --stop 28 then put '
|
|||
' then put '$seconds=systime()' then step -a delta -f seconds then cut -x -f seconds
|
||||
i o fcount seconds_delta
|
||||
1 1 1 0
|
||||
2 2 3 0.000026941
|
||||
3 3 5 0.000012875
|
||||
4 5 9 0.000017166
|
||||
5 8 15 0.000022888
|
||||
6 13 25 0.000034094
|
||||
7 21 41 0.000047922
|
||||
8 34 67 0.000074148
|
||||
9 55 109 0.000124931
|
||||
10 89 177 0.000175953
|
||||
2 2 3 0.000025988
|
||||
3 3 5 0.000013113
|
||||
4 5 9 0.000015020
|
||||
5 8 15 0.000021935
|
||||
6 13 25 0.000033140
|
||||
7 21 41 0.000044823
|
||||
8 34 67 0.000071049
|
||||
9 55 109 0.000109911
|
||||
10 89 177 0.000176191
|
||||
11 144 287 0.000279903
|
||||
12 233 465 0.000449181
|
||||
13 377 753 0.000722885
|
||||
14 610 1219 0.001163960
|
||||
15 987 1973 0.001880169
|
||||
16 1597 3193 0.003023863
|
||||
17 2584 5167 0.004923105
|
||||
18 4181 8361 0.007597923
|
||||
19 6765 13529 0.012258053
|
||||
20 10946 21891 0.019785881
|
||||
21 17711 35421 0.031752110
|
||||
22 28657 57313 0.050759077
|
||||
23 46368 92735 0.084112883
|
||||
24 75025 150049 0.135875940
|
||||
25 121393 242785 0.217002153
|
||||
26 196418 392835 0.339532852
|
||||
27 317811 635621 0.573457003
|
||||
28 514229 1028457 0.903333187
|
||||
12 233 465 0.000450134
|
||||
13 377 753 0.000890970
|
||||
14 610 1219 0.001194954
|
||||
15 987 1973 0.001878977
|
||||
16 1597 3193 0.003071070
|
||||
17 2584 5167 0.005360842
|
||||
18 4181 8361 0.008027077
|
||||
19 6765 13529 0.013869047
|
||||
20 10946 21891 0.023140907
|
||||
21 17711 35421 0.034433126
|
||||
22 28657 57313 0.055335999
|
||||
23 46368 92735 0.090437889
|
||||
24 75025 150049 0.141633034
|
||||
25 121393 242785 0.225202084
|
||||
26 196418 392835 0.367137909
|
||||
27 317811 635621 0.573060036
|
||||
28 514229 1028457 0.945078850
|
||||
</pre>
|
||||
</div>
|
||||
<p/>
|
||||
|
|
@ -665,32 +665,32 @@ $ mlr --ofmt '%.9lf' --opprint seqgen --start 1 --stop 28 then put '
|
|||
' then put '$seconds=systime()' then step -a delta -f seconds then cut -x -f seconds
|
||||
i o fcount seconds_delta
|
||||
1 1 1 0
|
||||
2 2 3 0.000027895
|
||||
3 3 3 0.000013113
|
||||
4 5 3 0.000010967
|
||||
5 8 3 0.000010967
|
||||
6 13 3 0.000010967
|
||||
7 21 3 0.000010967
|
||||
8 34 3 0.000010014
|
||||
9 55 3 0.000010967
|
||||
10 89 3 0.000010014
|
||||
11 144 3 0.000011206
|
||||
12 233 3 0.000013828
|
||||
13 377 3 0.000010967
|
||||
14 610 3 0.000010014
|
||||
15 987 3 0.000010014
|
||||
16 1597 3 0.000010014
|
||||
17 2584 3 0.000010967
|
||||
18 4181 3 0.000010014
|
||||
19 6765 3 0.000010014
|
||||
20 10946 3 0.000010014
|
||||
2 2 3 0.000031948
|
||||
3 3 3 0.000015020
|
||||
4 5 3 0.000013113
|
||||
5 8 3 0.000012875
|
||||
6 13 3 0.000011921
|
||||
7 21 3 0.000012159
|
||||
8 34 3 0.000011921
|
||||
9 55 3 0.000011921
|
||||
10 89 3 0.000012159
|
||||
11 144 3 0.000011921
|
||||
12 233 3 0.000015974
|
||||
13 377 3 0.000012159
|
||||
14 610 3 0.000011921
|
||||
15 987 3 0.000011921
|
||||
16 1597 3 0.000012159
|
||||
17 2584 3 0.000011921
|
||||
18 4181 3 0.000010967
|
||||
19 6765 3 0.000011921
|
||||
20 10946 3 0.000011206
|
||||
21 17711 3 0.000011921
|
||||
22 28657 3 0.000010014
|
||||
23 46368 3 0.000012159
|
||||
24 75025 3 0.000010967
|
||||
25 121393 3 0.000010014
|
||||
26 196418 3 0.000010967
|
||||
27 317811 3 0.000010014
|
||||
22 28657 3 0.000014067
|
||||
23 46368 3 0.000013828
|
||||
24 75025 3 0.000012159
|
||||
25 121393 3 0.000011921
|
||||
26 196418 3 0.000011921
|
||||
27 317811 3 0.000013113
|
||||
28 514229 3 0.000010967
|
||||
</pre>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html"><b>Data-diving examples</b></a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html"><b>FAQ</b></a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html"><b>Internationalization</b></a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html"><b>Manpage</b></a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html"><b>Manpage</b></a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
@ -141,7 +141,7 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<p/>
|
||||
|
||||
<!-- BODY COPIED FROM content-for-manpage.html BY poki -->
|
||||
<p/>This is simply a copy of what you should see on running <tt>man mlr</tt> at
|
||||
<p/>This is simply a copy of what you should see on running <b>man mlr</b> at
|
||||
a command prompt, once Miller is installed on your system.
|
||||
|
||||
<p/>
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ internationalization.html Internationalization
|
|||
|
||||
sep:details <b>Using Miller:</b>
|
||||
faq.html FAQ
|
||||
manpage.html Manpage
|
||||
data-examples.html Data-diving examples
|
||||
cookbook.html Cookbook
|
||||
manpage.html Manpage
|
||||
reference.html Reference
|
||||
reference-verbs.html Reference: Verbs
|
||||
reference-dsl.html Reference: DSL
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html"><b>Reference: DSL</b></a>
|
||||
|
|
@ -520,7 +520,7 @@ cannot use these names for local variables.
|
|||
defined by Miller.
|
||||
|
||||
<p/>Miller supports the following five built-in variables for <a
|
||||
href="#filter"><tt>filter</tt></a> and <tt>put</tt>, all <tt>awk</tt>-inspired:
|
||||
href="reference-verbs.html#filter"><tt>filter</tt></a> and <tt>put</tt>, all <tt>awk</tt>-inspired:
|
||||
<tt>NF</tt>, <tt>NR</tt>, <tt>FNR</tt>, <tt>FILENUM</tt>, and
|
||||
<tt>FILENAME</tt>, as well as the mathematical constants <tt>PI</tt> and
|
||||
<tt>E</tt>. Lastly, the <tt>ENV</tt> hashmap allows read access to environment
|
||||
|
|
@ -610,7 +610,7 @@ not be assigned to: <tt>NR=100</tt> is a syntax error.
|
|||
<a id="Field_names"/><h2>Field names</h2>
|
||||
|
||||
<p/>Field names must be specified using a <tt>$</tt> in <tt>filter</tt> and <a
|
||||
href="#put"><tt>put</tt></a> expressions, even though the dollar signs
|
||||
href="reference-verbs.html#put"><tt>put</tt></a> expressions, even though the dollar signs
|
||||
don’t appear in the data stream. For integer-indexed data, this looks
|
||||
like <tt>awk</tt>’s <tt>$1,$2,$3</tt>, except that Miller allows
|
||||
non-numeric names such as <tt>$quantity</tt> or <tt>$hostname</tt>. (Likewise,
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html"><b>Reference: Verbs</b></a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
@ -189,6 +189,11 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
</div>
|
||||
<p/>
|
||||
|
||||
When you type <tt>mlr {something} myfile.dat</tt>, the <tt>{something}</tt>
|
||||
part is called a <b>verb</b>. It specifies how you want to transform your data.
|
||||
(See also <a href="reference.html#Command_overview">here</a> for a breakdown.)
|
||||
The following is an alphabetical list of verbs with their descriptions.
|
||||
|
||||
<!-- ================================================================ -->
|
||||
<a id="bar"/><h1>bar</h1>
|
||||
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html"><b>Reference</b></a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
@ -191,14 +191,16 @@ mlr sort -f hostname,uptime *.dat
|
|||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#cat"><tt>cat</tt></a>,
|
||||
<a href="#cut"><tt>cut</tt></a>,
|
||||
<a href="#head"><tt>head</tt></a>,
|
||||
<a href="#sort"><tt>sort</tt></a>,
|
||||
<a href="#tac"><tt>tac</tt></a>,
|
||||
<a href="#tail"><tt>tail</tt></a>,
|
||||
<a href="#top"><tt>top</tt></a>,
|
||||
<a href="#uniq"><tt>uniq</tt></a>
|
||||
<a href="reference-verbs.html#cat"><tt>cat</tt></a>,
|
||||
<a href="reference-verbs.html#cut"><tt>cut</tt></a>,
|
||||
<a href="reference-verbs.html#grep"><tt>grep</tt></a>,
|
||||
<a href="reference-verbs.html#head"><tt>head</tt></a>,
|
||||
<a href="reference-verbs.html#join"><tt>join</tt></a>,
|
||||
<a href="reference-verbs.html#sort"><tt>sort</tt></a>,
|
||||
<a href="reference-verbs.html#tac"><tt>tac</tt></a>,
|
||||
<a href="reference-verbs.html#tail"><tt>tail</tt></a>,
|
||||
<a href="reference-verbs.html#top"><tt>top</tt></a>,
|
||||
<a href="reference-verbs.html#uniq"><tt>uniq</tt></a>
|
||||
</td>
|
||||
<td> Analogs of their Unix-toolkit namesakes, discussed below as well as in
|
||||
<a href="feature-comparison.html">Miller features in the context of the Unix toolkit</a> </td>
|
||||
|
|
@ -206,27 +208,37 @@ mlr sort -f hostname,uptime *.dat
|
|||
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#filter"><tt>filter</tt></a>,
|
||||
<a href="#put"><tt>put</tt></a>,
|
||||
<a href="#step"><tt>step</tt></a>
|
||||
<a href="reference-verbs.html#filter"><tt>filter</tt></a>,
|
||||
<a href="reference-verbs.html#put"><tt>put</tt></a>,
|
||||
<a href="reference-verbs.html#sec2gmt"><tt>sec2gmt</tt></a>,
|
||||
<a href="reference-verbs.html#sec2gmtdate"><tt>sec2gmtdate</tt></a>,
|
||||
<a href="reference-verbs.html#step"><tt>step</tt></a>,
|
||||
<a href="reference-verbs.html#tee"><tt>tee</tt></a>
|
||||
</td>
|
||||
<td> <tt>awk</tt>-like functionality </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#histogram"><tt>histogram</tt></a>,
|
||||
<a href="#stats1"><tt>stats1</tt></a>,
|
||||
<a href="#stats2"><tt>stats2</tt></a>
|
||||
<a href="reference-verbs.html#bar"><tt>bar</tt></a>,
|
||||
<a href="reference-verbs.html#bootstrap"><tt>bootstrap</tt></a>,
|
||||
<a href="reference-verbs.html#decimate"><tt>decimate</tt></a>,
|
||||
<a href="reference-verbs.html#histogram"><tt>histogram</tt></a>,
|
||||
<a href="reference-verbs.html#least-frequent"><tt>least-frequent</tt></a>,
|
||||
<a href="reference-verbs.html#most-frequent"><tt>most-frequent</tt></a>,
|
||||
<a href="reference-verbs.html#sample"><tt>sample</tt></a>,
|
||||
<a href="reference-verbs.html#shuffle"><tt>shuffle</tt></a>,
|
||||
<a href="reference-verbs.html#stats1"><tt>stats1</tt></a>,
|
||||
<a href="reference-verbs.html#stats2"><tt>stats2</tt></a>
|
||||
</td>
|
||||
<td> Statistically oriented </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#group-by"><tt>group-by</tt></a>,
|
||||
<a href="#group-like"><tt>group-like</tt></a>,
|
||||
<a href="#having-fields"><tt>having-fields</tt></a>
|
||||
<a href="reference-verbs.html#group-by"><tt>group-by</tt></a>,
|
||||
<a href="reference-verbs.html#group-like"><tt>group-like</tt></a>,
|
||||
<a href="reference-verbs.html#having-fields"><tt>having-fields</tt></a>
|
||||
</td>
|
||||
<td> Particularly oriented toward <a href="record-heterogeneity.html">Record-heterogeneity</a>, although
|
||||
all Miller commands can handle heterogeneous records
|
||||
|
|
@ -234,15 +246,21 @@ mlr sort -f hostname,uptime *.dat
|
|||
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#count-distinct"><tt>count-distinct</tt></a>,
|
||||
<a href="#label"><tt>label</tt></a>,
|
||||
<a href="#regularize"><tt>rename</tt></a>,
|
||||
<a href="#rename"><tt>rename</tt></a>,
|
||||
<a href="#reorder"><tt>reorder</tt></a>
|
||||
<a href="reference-verbs.html#check"><tt>check</tt></a>,
|
||||
<a href="reference-verbs.html#count-distinct"><tt>count-distinct</tt></a>,
|
||||
<a href="reference-verbs.html#label"><tt>label</tt></a>,
|
||||
<a href="reference-verbs.html#merge-fields"><tt>merge-fields</tt></a>,
|
||||
<a href="reference-verbs.html#nest"><tt>nest</tt></a>,
|
||||
<a href="reference-verbs.html#nothing"><tt>nothing</tt></a>,
|
||||
<a href="reference-verbs.html#regularize"><tt>rename</tt></a>,
|
||||
<a href="reference-verbs.html#rename"><tt>rename</tt></a>,
|
||||
<a href="reference-verbs.html#reorder"><tt>reorder</tt></a>,
|
||||
<a href="reference-verbs.html#reshape"><tt>reshape</tt></a>,
|
||||
<a href="reference-verbs.html#seqgen"><tt>seqgen</tt></a>
|
||||
</td>
|
||||
<td> These draw from other sources (see also <a href="originality.html">How original is Miller?</a>):
|
||||
<a href="#count-distinct"><tt>count-distinct</tt></a> is SQL-ish, and
|
||||
<a href="#rename"><tt>rename</tt></a> can be done by <tt>sed</tt> (which does it faster:
|
||||
<a href="reference-verbs.html#count-distinct"><tt>count-distinct</tt></a> is SQL-ish, and
|
||||
<a href="reference-verbs.html#rename"><tt>rename</tt></a> can be done by <tt>sed</tt> (which does it faster:
|
||||
see <a href="performance.html">Performance</a>).
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ Miller commands were run with pretty-print-tabular output format.
|
|||
<br/>• <a href="internationalization.html">Internationalization</a>
|
||||
<br/><b>Using Miller:</b>
|
||||
<br/>• <a href="faq.html">FAQ</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="data-examples.html">Data-diving examples</a>
|
||||
<br/>• <a href="cookbook.html">Cookbook</a>
|
||||
<br/>• <a href="manpage.html">Manpage</a>
|
||||
<br/>• <a href="reference.html">Reference</a>
|
||||
<br/>• <a href="reference-verbs.html">Reference: Verbs</a>
|
||||
<br/>• <a href="reference-dsl.html">Reference: DSL</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue