column: add link
This commit is contained in:

committed by
Starbeamrainbowlabs

parent
9eb75b07f3
commit
010ec03610
@@ -1,20 +1,21 @@
|
||||
# column
|
||||
|
||||
> Format standard input or file into multiple columns.
|
||||
> Rows are filled before columns; default separator is whitespace.
|
||||
> Format standard input or a file into multiple columns.
|
||||
> Columns are filled before rows; the default separator is a whitespace.
|
||||
> More information: <https://man.archlinux.org/man/core/util-linux/column.1>.
|
||||
|
||||
- Format output for a 30 characters wide display:
|
||||
- Format the output of a command for a 30 characters wide display:
|
||||
|
||||
`printf "header1 header2\nbar foo\n" | column -c {{30}}`
|
||||
`printf "header1 header2\nbar foo\n" | column --output-width {{30}}`
|
||||
|
||||
- Split columns automatically and auto-align in a tabular format:
|
||||
- Split columns automatically and auto-align them in a tabular format:
|
||||
|
||||
`printf "header1 header2\nbar foo\n" | column -t`
|
||||
`printf "header1 header2\nbar foo\n" | column --table`
|
||||
|
||||
- Specify column delimiter character for the -t option (e.g. "," for csv); default is whitespace:
|
||||
- Specify the column delimiter character for the `--table` option (e.g. "," for csv) (defauls to whitespace):
|
||||
|
||||
`printf "header1,header2\nbar,foo\n" | column -t -s{{,}}`
|
||||
`printf "header1,header2\nbar,foo\n" | column --table --separator {{,}}`
|
||||
|
||||
- Fill columns before filling rows:
|
||||
- Fill rows before filling columns:
|
||||
|
||||
`printf "header1\nbar\nfoobar\n" | column -c {{30}} -x`
|
||||
`printf "header1\nbar\nfoobar\n" | column --output-width {{30}} --fillrows`
|
||||
|
Reference in New Issue
Block a user