чување a2e992ad25a3968dda42b3f199ce643fb274cf12
родитељ 1a31342beaef7879b47b27911865b8152e92045a
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Mon, 6 May 2024 21:07:17 +0200
table.1.in: Fix syntax
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
| M | table.1.in | | | 43 | ++++++++++++++++++++++--------------------- |
измењених датотека: 1, додавања: 22(+), брисања: 21(-)
diff --git a/table.1.in b/table.1.in
@@ -53,7 +53,7 @@ is omitted,
reads standard input.
.
.Bl -tag -width Ds
-.It Fl a Ar alignment | Fl \-align= Ns Ar alignment
+.It Fl a Ar alignment , Fl \-align= Ns Ar alignment
Set column alignments.
.Ar alignment
is a string consisting of characters
@@ -67,16 +67,16 @@ For example,
.Fl a Ns Cm rccc
sets the alignment for the first column to right, and the next three columns to
center.
-.It Fl b | Fl \-border-mode
+.It Fl b , Fl \-border-mode
Border mode: force single column.
-.It Fl c Ar cols | Fl \-columns= Ns Ar cols
+.It Fl c Ar cols , Fl \-columns= Ns Ar cols
Set maximum table width in columns (default 80).
-.It Fl D | Fl \-align\-dot
+.It Fl D , Fl \-align\-dot
Set alignment character to dot
.Dq "."
instead of a space
.Dq " " .
-.It Fl d Ar delim | Fl \-delimiter= Ns Ar delim
+.It Fl d Ar delim , Fl \-delimiter= Ns Ar delim
Set field delimiter (default
.Do , Dc Ns ).
First line of the input determines the number of table columns.
@@ -104,7 +104,7 @@ Note that the
parameter takes precedence: if it is present,
.Fl d
is ignored.
-.It Fl f Ar format | Fl \-format= Ns Ar format
+.It Fl f Ar format , Fl \-format= Ns Ar format
Set widths for individual columns as ratio.
Parameter
.Ar format
@@ -136,21 +136,21 @@ $ table -f 1:5:5:1 -c 50 -s aa examples/quotes-english.csv
|007 |Bond, James |Bond |46 |
+----+------------------+------------------+----+
.Ed
-.It Fl H | Fl \-align\-header
+.It Fl H , Fl \-align\-header
Makes the column alignment also apply to header row.
The default behavior is to print header cells left\-aligned.
-.It Fl h | Fl \-help
+.It Fl h , Fl \-help
Print the usage information screen.
-.It Fl m | Fl \-msdos
-Ignore carriage return (\[rs]r) characters in input.
+.It Fl m , Fl \-msdos
+Ignore carriage return (\er) characters in input.
The default behavior is to treat them as part of the text, which can produce
unexpected results.
-.It Fl n | Fl \-no\-ansi
+.It Fl n , Fl \-no\-ansi
Turn off ANSI SGR codes in the output.
By default, the header row is printed in bold using ANSI codes if the stdout is
a tty.
This switch prevents that.
-.It Fl p | Fl \-pause
+.It Fl p , Fl \-pause
Presents the message
.Dq Press Enter to continue
and waits for input after outputting the table.
@@ -158,7 +158,7 @@ This accounts for executing
.Nm
from file managers which don't pause after executing programs or as a single
command from terminal emulators.
-.It Fl q Ar behavior | Fl \-quotes= Ns Ar behavior
+.It Fl q Ar behavior , Fl \-quotes= Ns Ar behavior
.Ar behavior
can be one of the following:
.Bl -tag -width Dsprocess
@@ -173,7 +173,7 @@ This is the default if
is called as
.Nm tsvtable .
.El
-.It Fl s Ar set | Fl \-symbols= Ns Ar set
+.It Fl s Ar set , Fl \-symbols= Ns Ar set
Use table symbol set
.Ar set
for table lines, where
@@ -207,7 +207,7 @@ _
_
\fIed\fR@empty-double.
.TE
-.It Fl t | Fl \-expand\-tabs
+.It Fl t , Fl \-expand\-tabs
Expand tabs to spaces, honoring standard modulo 8 tab stops.
Default behavior is to output tab characters as\-is.
.Pp
@@ -225,13 +225,13 @@ is used in addition,
is honored and
.Fl d
ignored.
-.It Fl V | Fl \-full\-version
+.It Fl V , Fl \-full\-version
Print full version (like
.Fl v Ns ),
followed by copyright notice, and exit.
-.It Fl v | Fl \-version
+.It Fl v , Fl \-version
Print program version and commit date, and exit.
-.It Fl y | Fl \-yes\-ansi
+.It Fl y , Fl \-yes\-ansi
Explicitly turn on ANSI SGR codes in the output.
By default, the header row is printed in bold using ANSI codes, unless the
stdout is not a tty.
@@ -244,7 +244,8 @@ This switch enforces the output of ANSI SGR codes, even in that case.
Periodically display CPU load information in a single\-line table (requires a
mounted Linux\-style
.Pa /proc
-file system)
+file system and GNU
+.Xr watch 1 )
.Bd -literal -offset 0
$ watch \[dq]table /proc/loadavg -d ' ' -c 50 -n -s ss\[dq]
.Ed
@@ -268,12 +269,12 @@ $ table -n -H -d: -arccclll -see -f3:1:1:1:4:4:4 /etc/passwd
.Ed
.El
.
-.Sh "SEE ALSO"
+.Sh SEE ALSO
.Xr awk 1 ,
.Xr sed 1
.
.Sh AUTHORS
-.An "Strahinya Radich" Aq contact@strahinja.org ,
+.An Strahinya Radich Aq Mt contact@strahinja.org ,
2020\-2024
.
.Sh BUGS