参考:Viewing Linux output in columns
column命令把他的输入格式化多列显示。输入可以是文件,也可以是标准输入。
列优先,从左到右
显示的时候首先填满最左列,然后右列,顺序如下
1 4 7 10
2 5 8 11
3 6 9 12
测试文件
$ cat RR I've been working on the railroad All the live long day I've been working on the railroad Just to pass the time away Can't you hear the whistle blowing Rise up so early in the morn Can't you hear the whistle blowing Dinah, blow your horn Dinah, won't you blow Dinah, won't you blow Dinah, won't you blow your horn Dinah, won't you blow, Dinah, won't you blow, Dinah, won't you blow your horn