mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
column: add link
This commit is contained in:
parent
9eb75b07f3
commit
010ec03610
3 changed files with 26 additions and 23 deletions
|
@ -1,20 +1,21 @@
|
|||
# column
|
||||
|
||||
> Formatta standard input o un file in più colonne.
|
||||
> Le righe sono riempite prima delle colonne; il separatore predefinito è lo spazio.
|
||||
> Le colonne sono riempite prima delle righe; il separatore predefinito è lo spazio.
|
||||
> Maggiori informazioni: <https://man.archlinux.org/man/core/util-linux/column.1>.
|
||||
|
||||
- Formatta l'output per uno schermo largo 30 caratteri:
|
||||
|
||||
`printf "intestazione1 intestazione2\nbar foo\n" | column -c {{30}}`
|
||||
`printf "intestazione1 intestazione2\nbar foo\n" | column --output-width {{30}}`
|
||||
|
||||
- Specifica un diverso separatore di colonna (e.g. "," per csv); il predefinito è lo spazio:
|
||||
- Specifica un diverso separatore di colonna (e.g. "," per csv) (il predefinito è lo spazio):
|
||||
|
||||
`printf "intestazione1 intestazione2\nbar foo\n" | column -s{{,}}`
|
||||
`printf "intestazione1 intestazione2\nbar foo\n" | column --separator {{,}}`
|
||||
|
||||
- Separa colonne ed allinea automaticamente in un formato tabulare:
|
||||
|
||||
`printf "intestazione1 intestazione2\nbar foo\n" | column -t`
|
||||
`printf "intestazione1 intestazione2\nbar foo\n" | column --table`
|
||||
|
||||
- Riempi le colonne prima delle righe:
|
||||
- Riempi le righe prima delle colonne:
|
||||
|
||||
`printf "intestazione1\nbar\nfoobar\n" | column -c {{30}} -x`
|
||||
`printf "intestazione1\nbar\nfoobar\n" | column --output-width {{30}} --fillrows`
|
||||
|
|
|
@ -1,20 +1,21 @@
|
|||
# column
|
||||
|
||||
> 표준 입력 또는 파일을 여러 열로 포맷 설정.
|
||||
> 행은 열 앞에 채워집니다; 기본 구분 기호는 공백입니다.
|
||||
> 행 앞에 열이 채워짐; 기본 구분 기호는 공백입니다.
|
||||
> 더 많은 정보: <https://man.archlinux.org/man/core/util-linux/column.1>.
|
||||
|
||||
- 30자 폭 디스플레이의 형식 출력으로 포맷 정하기:
|
||||
|
||||
`printf "header1 header2\nbar foo\n" | column -c {{30}}`
|
||||
`printf "header1 header2\nbar foo\n" | column --output-width {{30}}`
|
||||
|
||||
- 열 자동 분할 및 자동 정렬을 표 형식으로 분할:
|
||||
|
||||
`printf "header1 header2\nbar foo\n" | column -t`
|
||||
`printf "header1 header2\nbar foo\n" | column --table`
|
||||
|
||||
- -t 옵션(예: "", csv)에 대한 열 구분 기호 문자를 지정; 기본값은 공백입니다:
|
||||
|
||||
`printf "header1,header2\nbar,foo\n" | column -t -s{{,}}`
|
||||
`printf "header1,header2\nbar,foo\n" | column --table --separator {{,}}`
|
||||
|
||||
- 행을 채우기 전에 열을 채웁니다:
|
||||
- 열을 채우기 전에 행 채우기:
|
||||
|
||||
`printf "header1\nbar\nfoobar\n" | column -c {{30}} -x`
|
||||
`printf "header1\nbar\nfoobar\n" | column --output-width {{30}} --fillrows`
|
||||
|
|
|
@ -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`
|
||||
|
|
Loading…
Add table
Reference in a new issue