column:tldr:adbf9
column: Format the output of a command for a 30 characters wide display.
$ printf "header1 header2\nbar foo\n" | column --output-width ${30}
try on your machine
This command uses the printf
command to generate a string with two lines of text: "header1 header2" and "bar foo".
The string is then passed as input to the column
command, which is used to format the data into columns.
The --output-width
option sets the width of the output columns to 30 characters.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.