1. Technology
Send to a Friend via Email
Linux / Unix Command: column
Command Library

NAME

column - columnate lists  

SYNOPSIS

column [-tx ] [-c columns ] [-s sep ] [file ... ]  

DESCRIPTION

The column utility formats its input into multiple columns. Rows are filled before columns. Input is taken from file operands, or, by default, from the standard input. Empty lines are ignored.

The options are as follows:

-c
Output is formatted for a display columns wide.
-s
Specify a set of characters to be used to delimit columns for the -t option.
-t
Determine the number of columns the input contains and create a table. Columns are delimited with whitespace, by default, or with the characters supplied using the -s option. Useful for pretty-printing displays.
-x
Fill columns before filling rows.

Column exits 0 on success, >0 if an error occurred.  

SEE ALSO

colrm(1), ls(1), paste(1), sort(1)  

Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

You can opt-out at any time. Please refer to our privacy policy for contact information.

Discuss in my forum

©2014 About.com. All rights reserved.