mirror of
https://github.com/johnkerl/miller.git
synced 2026-08-01 20:12:19 +00:00
Emit notes (#858)
* Conda/Docker install notes * Clarify wording for #827
This commit is contained in:
parent
eb69d232c1
commit
99c062309f
2 changed files with 8 additions and 0 deletions
|
|
@ -321,6 +321,8 @@ IFS and IPS can be regular expressions now. Please see the section on [multi-cha
|
|||
|
||||
Variables must be non-indexed on `emit`. To emit an indexed variable now requires the new `emit1` keyword.
|
||||
|
||||
This worked in Miller 5 but is no longer supported in Miller 6:
|
||||
|
||||
<pre class="pre-highlight-in-pair">
|
||||
<b>mlr5 -n put 'end {@input={"a":1}; emit @input["a"]}'</b>
|
||||
</pre>
|
||||
|
|
@ -328,6 +330,8 @@ Variables must be non-indexed on `emit`. To emit an indexed variable now require
|
|||
input=1
|
||||
</pre>
|
||||
|
||||
This works in Miller 6 (and worked in Miller 5 as well) and is supported:
|
||||
|
||||
<pre class="pre-highlight-in-pair">
|
||||
<b>mlr -n put 'end {@input={"a":1}; emit1 {"input":@input["a"]}}'</b>
|
||||
</pre>
|
||||
|
|
|
|||
|
|
@ -275,11 +275,15 @@ IFS and IPS can be regular expressions now. Please see the section on [multi-cha
|
|||
|
||||
Variables must be non-indexed on `emit`. To emit an indexed variable now requires the new `emit1` keyword.
|
||||
|
||||
This worked in Miller 5 but is no longer supported in Miller 6:
|
||||
|
||||
GENMD-CARDIFY-HIGHLIGHT-ONE
|
||||
mlr5 -n put 'end {@input={"a":1}; emit @input["a"]}'
|
||||
input=1
|
||||
GENMD-EOF
|
||||
|
||||
This works in Miller 6 (and worked in Miller 5 as well) and is supported:
|
||||
|
||||
GENMD-RUN-COMMAND
|
||||
mlr -n put 'end {@input={"a":1}; emit1 {"input":@input["a"]}}'
|
||||
GENMD-EOF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue