Skip to content

Commit

Permalink
neaten
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Oct 27, 2015
1 parent 795ca87 commit 5921459
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/content-for-reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,10 @@ <h2>label</h2>

POKI_INCLUDE_ESCAPED(data/label-example.txt)HERE

<p/>Likewise, if you have CSV/CSV-lite input data which has somehow been bereft of its header line, you can re-add them using <tt>--implicit-csv-header</tt> and <tt>label</tt>:
<p/>Likewise, if you have CSV/CSV-lite input data which has somehow been bereft of its header line, you can re-add a header line using <tt>--implicit-csv-header</tt> and <tt>label</tt>:

POKI_RUN_COMMAND{{cat data/headerless.csv}}HERE
POKI_RUN_COMMAND{{mlr --csv --rs lf --implicit-csv-header cat data/headerless.csv}}HERE
POKI_RUN_COMMAND{{mlr --csv --rs lf --implicit-csv-header label name,age,status data/headerless.csv}}HERE
POKI_RUN_COMMAND{{mlr --icsv --rs lf --implicit-csv-header --opprint label name,age,status data/headerless.csv}}HERE

Expand Down
14 changes: 13 additions & 1 deletion doc/reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@
</div>
<p/>

<p/>Likewise, if you have CSV/CSV-lite input data which has somehow been bereft of its header line, you can re-add them using <tt>--implicit-csv-header</tt> and <tt>label</tt>:
<p/>Likewise, if you have CSV/CSV-lite input data which has somehow been bereft of its header line, you can re-add a header line using <tt>--implicit-csv-header</tt> and <tt>label</tt>:

<p/>
<div class="pokipanel">
Expand All @@ -1471,6 +1471,18 @@
<p/>
<div class="pokipanel">
<pre>
$ mlr --csv --rs lf --implicit-csv-header cat data/headerless.csv
1,2,3
John,23,present
Fred,34,present
Alice,56,missing
Carol,45,present
</pre>
</div>
<p/>
<p/>
<div class="pokipanel">
<pre>
$ mlr --csv --rs lf --implicit-csv-header label name,age,status data/headerless.csv
name,age,status
John,23,present
Expand Down

0 comments on commit 5921459

Please sign in to comment.