将两个文本列表(一个文件列表)粘贴到一个用分号分隔的列表中 [英] Paste two text lists (one list a file) into one list separated by semicolon
本文介绍了将两个文本列表(一个文件列表)粘贴到一个用分号分隔的列表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
过程/输出的示例为:
文件1:
hello
world
文件2:
foo
bar
连接后的结果文件:
文件3:
hello;foo
world;bar
获取大量的非预期文本(无通配符-但行如上所述对齐).
For a large list of non-predictive text (no-wild cards - but lines are aligned as above).
我无法弄清楚如何在Ubuntu下使用粘贴命令来完成此操作.
I cannot figure out how to do this with the paste command under Ubuntu.
推荐答案
paste -d';' File1 File2 > File3
这篇关于将两个文本列表(一个文件列表)粘贴到一个用分号分隔的列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文