summaryrefslogtreecommitdiffstats
path: root/text-utils/column.1
diff options
context:
space:
mode:
authorKarel Zak2017-03-01 12:25:16 +0100
committerKarel Zak2017-03-01 12:25:16 +0100
commit3e094e5fe2b9949506cb0e65b9d25aa8c628751f (patch)
tree0742e902af0f37eedb9913f9b5eaeca42863396f /text-utils/column.1
parentlibmount: cosmetic change to mnt_table_find_srcpath() (diff)
downloadkernel-qcow2-util-linux-3e094e5fe2b9949506cb0e65b9d25aa8c628751f.tar.gz
kernel-qcow2-util-linux-3e094e5fe2b9949506cb0e65b9d25aa8c628751f.tar.xz
kernel-qcow2-util-linux-3e094e5fe2b9949506cb0e65b9d25aa8c628751f.zip
column: make more obvious what is default behavior
The man page contains mistakes. The default is to fill columns before lines: $ printf 'aaaaaaaaaaaaaaaaaaaaaa\nBBBBBBBBBBBBBBBBBBBBB\nXXXXXXX\nYYYYYYYYYYY\nZZZZZ' > data $ column --columns 80 < data aaaaaaaaaaaaaaaaaaaaaa XXXXXXX ZZZZZ BBBBBBBBBBBBBBBBBBBBB YYYYYYYYYYY $ column --fillrows --columns 80 < data aaaaaaaaaaaaaaaaaaaaaa BBBBBBBBBBBBBBBBBBBBB XXXXXXX YYYYYYYYYYY ZZZZZ The patch also rename functions in the code to make it more obvious for code readers. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'text-utils/column.1')
-rw-r--r--text-utils/column.16
1 files changed, 3 insertions, 3 deletions
diff --git a/text-utils/column.1 b/text-utils/column.1
index 5c6f36add..e861e0d29 100644
--- a/text-utils/column.1
+++ b/text-utils/column.1
@@ -40,8 +40,8 @@ column \- columnate lists
.SH DESCRIPTION
The
.B column
-utility formats its input into multiple columns. By default, rows
-are filled before columns. Input is taken from \fIfile\fR, or
+utility formats its input into multiple columns. By default, columns
+are filled before rows. Input is taken from \fIfile\fR, or
otherwise from standard input. Empty lines are ignored.
.PP
.SH OPTIONS
@@ -58,7 +58,7 @@ Columns are delimited with whitespace, by default, or with the characters
supplied using the \fB\-\-output\-separator\fP option.
Table output is useful for pretty-printing.
.IP "\fB\-x, \-\-fillrows\fP"
-Fill columns before filling rows.
+Fill rows before filling columns.
.IP "\fB\-V\fR, \fB\-\-version\fR"
Display version information and exit.
.IP "\fB\-h, \-\-help\fP"