doc neatens

This commit is contained in:
John Kerl 2016-03-08 21:44:10 -08:00
parent ca213f11e4
commit edbfcdbed0
4 changed files with 53 additions and 1 deletions

View file

@ -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

View file

@ -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>

View 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"
}
]

View file

@ -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>