mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-26 17:28:13 +00:00
doc neatens
This commit is contained in:
parent
ca213f11e4
commit
edbfcdbed0
4 changed files with 53 additions and 1 deletions
|
|
@ -9,7 +9,6 @@ TOP-OF-LIST SUMMARY
|
|||
? make a 3.5.0 with nest, shuffle, & cat -n bugfix?
|
||||
* rh/fedora/centos mlr-3.4.0
|
||||
|
||||
* \" in string-literal reader ... fix up in the parser or in rval_expr.
|
||||
* basenaming syntax for subselector emits
|
||||
~ oosvar-to-oosvar assignments with treecopy
|
||||
~ subselector emits
|
||||
|
|
|
|||
|
|
@ -227,5 +227,7 @@ for an entirely different, very powerful option). Namely:
|
|||
POKI_INCLUDE_ESCAPED(data/system-file-opprint-example.txt)HERE
|
||||
</td></tr> <tr><td>
|
||||
POKI_INCLUDE_ESCAPED(data/system-file-oxtab-example.txt)HERE
|
||||
</td></tr> <tr><td>
|
||||
POKI_INCLUDE_ESCAPED(data/system-file-ojson-example.txt)HERE
|
||||
</td> </tr></table>
|
||||
|
||||
|
|
|
|||
22
doc/data/system-file-ojson-example.txt
Normal file
22
doc/data/system-file-ojson-example.txt
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
$ grep -v '^#' /etc/passwd | head -n 2 | \
|
||||
mlr --nidx --fs : --ojson --jvstack --jlistwrap label name,password,uid,gid,gecos,home_dir,shell
|
||||
[
|
||||
{
|
||||
"name": "nobody",
|
||||
"password": "*",
|
||||
"uid": -2,
|
||||
"gid": -2,
|
||||
"gecos": "Unprivileged User",
|
||||
"home_dir": "/var/empty",
|
||||
"shell": "/usr/bin/false"
|
||||
}
|
||||
,{
|
||||
"name": "root",
|
||||
"password": "*",
|
||||
"uid": 0,
|
||||
"gid": 0,
|
||||
"gecos": "System Administrator",
|
||||
"home_dir": "/var/root",
|
||||
"shell": "/bin/sh"
|
||||
}
|
||||
]
|
||||
|
|
@ -684,6 +684,35 @@ $ grep -v '^#' /etc/passwd | head -n 2 | mlr --nidx --fs : --oxtab cat
|
|||
</pre>
|
||||
</div>
|
||||
<p/>
|
||||
</td></tr> <tr><td>
|
||||
<p/>
|
||||
<div class="pokipanel">
|
||||
<pre>
|
||||
$ grep -v '^#' /etc/passwd | head -n 2 | \
|
||||
mlr --nidx --fs : --ojson --jvstack --jlistwrap label name,password,uid,gid,gecos,home_dir,shell
|
||||
[
|
||||
{
|
||||
"name": "nobody",
|
||||
"password": "*",
|
||||
"uid": -2,
|
||||
"gid": -2,
|
||||
"gecos": "Unprivileged User",
|
||||
"home_dir": "/var/empty",
|
||||
"shell": "/usr/bin/false"
|
||||
}
|
||||
,{
|
||||
"name": "root",
|
||||
"password": "*",
|
||||
"uid": 0,
|
||||
"gid": 0,
|
||||
"gecos": "System Administrator",
|
||||
"home_dir": "/var/root",
|
||||
"shell": "/bin/sh"
|
||||
}
|
||||
]
|
||||
</pre>
|
||||
</div>
|
||||
<p/>
|
||||
</td> </tr></table>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue