mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 18:26:02 +02:00
column: add page (#1053)
This commit is contained in:
parent
1072483744
commit
386a66cc9d
1 changed files with 20 additions and 0 deletions
20
pages/common/column.md
Normal file
20
pages/common/column.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# column
|
||||
|
||||
> Format standard input or file into multiple columns.
|
||||
> Rows are filled before columns; default separator is whitespace.
|
||||
|
||||
- Format output for a 30 characters wide display:
|
||||
|
||||
`printf "header1 header2\nbar foo\n" | column -c {{30}}`
|
||||
|
||||
- Specify column delimiter character for the -t option (i.e. "," for csv); default is whitespace:
|
||||
|
||||
`printf "header1,header2\nbar,foo\n" | column -s{{,}}`
|
||||
|
||||
- Split columns automatically and auto-align in a tabular format:
|
||||
|
||||
`printf "header1 header2\nbar foo\n" | column -t`
|
||||
|
||||
- Fill columns before filling rows:
|
||||
|
||||
`printf "header1\nbar\nfoobar\n" | column -c {{30}} -x`
|
Loading…
Add table
Reference in a new issue