awk 'NR == FNR {s[NR]=$0} NR > FNR {print s[FNR]$0}'
On 08:21 Sat 27 Apr , 牛博恩 wrote:
有两个文本文件,1.txt 和2.txt
我想把2.txt的内容附加到1.txt的每一行后面
比如1.txt内容是
1
2
3
4
2.txt的内容和1.txt相同,最后希望得到的效果是
11
22
33
44
----------------------
求用vim或者sed,awk这样的工具的解决办法
--
Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
--
- Úcarenya - infernoxu at gmail dot com
-
http://ucarenya.com/