When you see the output of Linux under the column crooked, is not looking very uncomfortable? The column command makes it easy to solve the problem.
Example:
We generally only use this one of the above methods.
Other ways to use column include the following:
Options |
Meaning |
-C Character Count |
Specify the column width to display |
-S " delimiter " |
Specify delimiter when using the-T option (agree to specify multiple separators ) |
-T |
Infers the number of columns in the input row to create a table . The delimiter is used with the character specified in-S. Assuming no delimiter is specified, the default is a space |
-X |
Change the sort order (left → right). The default order is (top → bottom)
|
References:
http://code.csdn.net/news/2819566
Http://www.atmarkit.co.jp/flinux/rensai/linuxtips/552text2col.html
Mans column
[Gadget] Linux the following formatting Tools-column