参考: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
View Code

相关文章:

  • 2021-07-04
  • 2021-12-19
  • 2021-04-19
  • 2022-01-02
  • 2022-02-12
  • 2021-05-26
  • 2021-10-17
猜你喜欢
  • 2022-12-23
  • 2021-09-25
  • 2021-06-09
  • 2022-12-23
  • 2021-12-23
  • 2021-12-23
  • 2021-09-19
相关资源
相似解决方案