将两个文本列表(一个列表文件)粘贴到一个以分号分隔的列表中

use*_*960 6 unix linux concatenation batch-file paste

过程/输出的一个例子是:

文件1:

hello
world
Run Code Online (Sandbox Code Playgroud)

文件2:

foo
bar
Run Code Online (Sandbox Code Playgroud)

连接后生成的文件:

文件3:

hello;foo
world;bar
Run Code Online (Sandbox Code Playgroud)

对于大量非预测文本(非通配卡 - 但行如上所述对齐).

我无法弄清楚如何使用Ubuntu下的paste命令执行此操作.

mou*_*iel 9

paste -d';' File1 File2  >  File3
Run Code Online (Sandbox Code Playgroud)