Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

35
column Normal file
View File

@@ -0,0 +1,35 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# column
> Format `stdin` or a file into multiple columns.
> Columns are filled before rows; the default separator is a whitespace.
> More information: <https://manned.org/column>.
- Format the output of a command for a 30 characters wide display:
`printf "header1 header2
bar foo
" | column --output-width {{30}}`
- Split columns automatically and auto-align them in a tabular format:
`printf "header1 header2
bar foo
" | column --table`
- Specify the column delimiter character for the `--table` option (e.g. "," for CSV) (defaults to whitespace):
`printf "header1,header2
bar,foo
" | column --table --separator {{,}}`
- Fill rows before filling columns:
`printf "header1
bar
foobar
" | column --output-width {{30}} --fillrows`