我有两个单词列表:
$ head -n 15 words.txt > list1
$ tail -n 15 words.txt > list2
我将它们粘贴到列中:
$ paste list1 list2
结果是这样的,列之间有标签:
2 Zwiebel
1080 zwieselite
&c Zwingle
10-point Zwingli
10th Zwinglian
11-point Zwinglianism
12-point Zwinglianist
16-point zwitter
18-point zwitterion
1st zwitterionic
2,4,5-t Zwolle
2,4-d Zworykin
20-point ZZ
2D zZt
2nd ZZZ
我希望这样,在某些行的列之间有更多选项卡:
2 Zwiebel
1080 zwieselite
&c Zwingle
10-point Zwingli
10th Zwinglian
11-point Zwinglianism
12-point Zwinglianist
16-point zwitter
18-point zwitterion
1st zwitterionic
2,4,5-t Zwolle
2,4-d Zworykin
20-point ZZ
2D zZt
2nd ZZZ
我该怎么做呢?
要么通过管道传输结果
column -t
:或
pr
与-m
(合并)选项一起使用:请注意,如果输出超过当前
PAGE_WIDTH
(默认情况下,72 个字符),后者可能会截断列 - 如果这成为问题,您可能需要使用增加页面宽度-w