Shell/Linux 将一个文件中的每两行合并成一行

# cat > test.txt
1
2
3
4
5
6


# more test.txt
1
2
3
4
5
6

# xargs -l2 < test.txt | more
1 2
3 4
5 6

原文地址:https://www.cnblogs.com/emanlee/p/14765961.html