如何在 bash 中连接 2 个文件中的行[重复]

问题描述 投票:0回答:1

我有2个文件: 节点.txt

node1
node2
node3

描述.txt

Description1
Description2
Description3

如何创建一个循环并以 2 个文件的串联行形式获得输出?

输出.txt

node1 Description1
node2 Description2
node3 Description3
bash shell loops concatenation
1个回答
0
投票
paste -d' ' nodes.txt descriptions.txt
© www.soinside.com 2019 - 2024. All rights reserved.