GNU/Linux Command – COLUMN

column — Format the input into columns

Summary:
The column utility formats its input into multiple columns. By default, Rows are filled before columns. Input is taken from file operands OR from the standard input. Empty lines are ignored. Create a file (name.txt), which should contain list of 20 names.

Examples:
$ column name.txt -- List the names in column format. $ column -x name.txt -- In the list, Columns filled before rows. $ column -c 40 name.txt -- Output will be fitted into 40 columns. $ ls -l | column -t -- Create Table, if input contain multiple columns.
Read: man column

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: