1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-26 08:35:28 +02:00
tldr/pages.it/linux/column.md

22 lines
838 B
Markdown
Raw Normal View History

2019-04-01 22:49:18 +02:00
# column
> Formatta standard input o un file in più colonne.
2021-03-31 12:45:02 +02:00
> Le colonne sono riempite prima delle righe; il separatore predefinito è lo spazio.
> Maggiori informazioni: <https://manned.org/column>.
2019-04-01 22:49:18 +02:00
- Formatta l'output per uno schermo largo 30 caratteri:
`printf "intestazione1 intestazione2\nbar foo\n" | column {{[-c|--output-width]}} {{30}}`
2019-04-01 22:49:18 +02:00
- Separa colonne ed allinea automaticamente in un formato tabulare:
`printf "intestazione1 intestazione2\nbar foo\n" | column {{[-t|--table]}}`
2019-04-01 22:49:18 +02:00
- Specifica un diverso separatore di colonna (e.g. "," per CSV) (il predefinito è lo spazio):
`printf "intestazione1 intestazione2\nbar foo\n" | column {{[-t|--table]}} {{[-s|--separator]}} {{,}}`
2021-03-31 12:45:02 +02:00
- Riempi le righe prima delle colonne:
2019-04-01 22:49:18 +02:00
`printf "intestazione1\nbar\nfoobar\n" | column {{[-c|--output-width]}} {{30}} {{[-x|--fillrows]}}`