mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-08-10 22:41:51 +02:00
formatting
This commit is contained in:
17
man/jc.1
17
man/jc.1
@@ -600,7 +600,7 @@ Most operating systems will buffer output that is being piped from process to pr
|
|||||||
.RS
|
.RS
|
||||||
.na
|
.na
|
||||||
.nf
|
.nf
|
||||||
$ ping 1.1.1.1 | jc --ping-s | jq
|
$ ping 1.1.1.1 | jc \fB--ping-s\fP | jq
|
||||||
<slow output>
|
<slow output>
|
||||||
.fi
|
.fi
|
||||||
.RE
|
.RE
|
||||||
@@ -610,7 +610,7 @@ This is because the OS engages the 4KB buffer between \fBjc\fP and \fBjq\fP in t
|
|||||||
.RS
|
.RS
|
||||||
.na
|
.na
|
||||||
.nf
|
.nf
|
||||||
$ ping 1.1.1.1 | jc --ping-s -u | jq
|
$ ping 1.1.1.1 | jc \fB--ping-s\fP \fB-u\fP | jq
|
||||||
{"type":"reply","pattern":null,"timestamp":null,"bytes":"64",...}
|
{"type":"reply","pattern":null,"timestamp":null,"bytes":"64",...}
|
||||||
{"type":"reply","pattern":null,"timestamp":null,"bytes":"64",...}
|
{"type":"reply","pattern":null,"timestamp":null,"bytes":"64",...}
|
||||||
etc...
|
etc...
|
||||||
@@ -623,11 +623,12 @@ Note: Unbuffered output can be slower for large data streams.
|
|||||||
Custom local parser plugins may be placed in a \fBjc/jcparsers\fP folder in your local "App data directory":
|
Custom local parser plugins may be placed in a \fBjc/jcparsers\fP folder in your local "App data directory":
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
|
.na
|
||||||
|
.nf
|
||||||
- Linux/unix: \fB$HOME/.local/share/jc/jcparsers\fP
|
- Linux/unix: \fB$HOME/.local/share/jc/jcparsers\fP
|
||||||
|
|
||||||
- macOS: \fB$HOME/Library/Application Support/jc/jcparsers\fP
|
- macOS: \fB$HOME/Library/Application Support/jc/jcparsers\fP
|
||||||
|
|
||||||
- Windows: \fB$LOCALAPPDATA\\jc\\jc\\jcparsers\fP
|
- Windows: \fB$LOCALAPPDATA\\jc\\jc\\jcparsers\fP
|
||||||
|
.fi
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
Local parser plugins are standard python module files. Use the \fBjc/parsers/foo.py\fP parser as a template and simply place a \fB.py\fP file in the \fBjcparsers\fP subfolder.
|
Local parser plugins are standard python module files. Use the \fBjc/parsers/foo.py\fP parser as a template and simply place a \fB.py\fP file in the \fBjcparsers\fP subfolder.
|
||||||
@@ -639,11 +640,15 @@ Note: The application data directory follows the XDG Base Directory Specificatio
|
|||||||
.SH CAVEATS
|
.SH CAVEATS
|
||||||
\fBLocale:\fP For best results set the \fBLANG\fP locale environment variable to \fBC\fP or \fBen_US.UTF-8\fP. For example, either by setting directly on the command-line:
|
\fBLocale:\fP For best results set the \fBLANG\fP locale environment variable to \fBC\fP or \fBen_US.UTF-8\fP. For example, either by setting directly on the command-line:
|
||||||
|
|
||||||
\fB$ LANG=C date | jc --date\fP
|
.RS
|
||||||
|
$ LANG=C date | jc \fB--date\fP
|
||||||
|
.RE
|
||||||
|
|
||||||
or by exporting to the environment before running commands:
|
or by exporting to the environment before running commands:
|
||||||
|
|
||||||
\fB$ export LANG=C\fP
|
.RS
|
||||||
|
$ export LANG=C
|
||||||
|
.RE
|
||||||
|
|
||||||
\fBTimezones:\fP Some parsers have calculated epoch timestamp fields added to the output. Unless a timestamp field name has a \fB_utc\fP suffix it is considered naive. (i.e. based on the local timezone of the system the \fBjc\fP parser was run on).
|
\fBTimezones:\fP Some parsers have calculated epoch timestamp fields added to the output. Unless a timestamp field name has a \fB_utc\fP suffix it is considered naive. (i.e. based on the local timezone of the system the \fBjc\fP parser was run on).
|
||||||
|
|
||||||
|
@@ -155,7 +155,7 @@ Most operating systems will buffer output that is being piped from process to pr
|
|||||||
.RS
|
.RS
|
||||||
.na
|
.na
|
||||||
.nf
|
.nf
|
||||||
$ ping 1.1.1.1 | jc --ping-s | jq
|
$ ping 1.1.1.1 | jc \fB--ping-s\fP | jq
|
||||||
<slow output>
|
<slow output>
|
||||||
.fi
|
.fi
|
||||||
.RE
|
.RE
|
||||||
@@ -165,7 +165,7 @@ This is because the OS engages the 4KB buffer between \fBjc\fP and \fBjq\fP in t
|
|||||||
.RS
|
.RS
|
||||||
.na
|
.na
|
||||||
.nf
|
.nf
|
||||||
$ ping 1.1.1.1 | jc --ping-s -u | jq
|
$ ping 1.1.1.1 | jc \fB--ping-s\fP \fB-u\fP | jq
|
||||||
{"type":"reply","pattern":null,"timestamp":null,"bytes":"64",...}
|
{"type":"reply","pattern":null,"timestamp":null,"bytes":"64",...}
|
||||||
{"type":"reply","pattern":null,"timestamp":null,"bytes":"64",...}
|
{"type":"reply","pattern":null,"timestamp":null,"bytes":"64",...}
|
||||||
etc...
|
etc...
|
||||||
@@ -178,11 +178,12 @@ Note: Unbuffered output can be slower for large data streams.
|
|||||||
Custom local parser plugins may be placed in a \fBjc/jcparsers\fP folder in your local "App data directory":
|
Custom local parser plugins may be placed in a \fBjc/jcparsers\fP folder in your local "App data directory":
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
|
.na
|
||||||
|
.nf
|
||||||
- Linux/unix: \fB$HOME/.local/share/jc/jcparsers\fP
|
- Linux/unix: \fB$HOME/.local/share/jc/jcparsers\fP
|
||||||
|
|
||||||
- macOS: \fB$HOME/Library/Application Support/jc/jcparsers\fP
|
- macOS: \fB$HOME/Library/Application Support/jc/jcparsers\fP
|
||||||
|
|
||||||
- Windows: \fB$LOCALAPPDATA\\jc\\jc\\jcparsers\fP
|
- Windows: \fB$LOCALAPPDATA\\jc\\jc\\jcparsers\fP
|
||||||
|
.fi
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
Local parser plugins are standard python module files. Use the \fBjc/parsers/foo.py\fP parser as a template and simply place a \fB.py\fP file in the \fBjcparsers\fP subfolder.
|
Local parser plugins are standard python module files. Use the \fBjc/parsers/foo.py\fP parser as a template and simply place a \fB.py\fP file in the \fBjcparsers\fP subfolder.
|
||||||
@@ -194,11 +195,15 @@ Note: The application data directory follows the XDG Base Directory Specificatio
|
|||||||
.SH CAVEATS
|
.SH CAVEATS
|
||||||
\fBLocale:\fP For best results set the \fBLANG\fP locale environment variable to \fBC\fP or \fBen_US.UTF-8\fP. For example, either by setting directly on the command-line:
|
\fBLocale:\fP For best results set the \fBLANG\fP locale environment variable to \fBC\fP or \fBen_US.UTF-8\fP. For example, either by setting directly on the command-line:
|
||||||
|
|
||||||
\fB$ LANG=C date | jc --date\fP
|
.RS
|
||||||
|
$ LANG=C date | jc \fB--date\fP
|
||||||
|
.RE
|
||||||
|
|
||||||
or by exporting to the environment before running commands:
|
or by exporting to the environment before running commands:
|
||||||
|
|
||||||
\fB$ export LANG=C\fP
|
.RS
|
||||||
|
$ export LANG=C
|
||||||
|
.RE
|
||||||
|
|
||||||
\fBTimezones:\fP Some parsers have calculated epoch timestamp fields added to the output. Unless a timestamp field name has a \fB_utc\fP suffix it is considered naive. (i.e. based on the local timezone of the system the \fBjc\fP parser was run on).
|
\fBTimezones:\fP Some parsers have calculated epoch timestamp fields added to the output. Unless a timestamp field name has a \fB_utc\fP suffix it is considered naive. (i.e. based on the local timezone of the system the \fBjc\fP parser was run on).
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user