urfile1:
aaa
bbb
ccc
urfile2:
111
222
333
outfile:
111 aaa
222 bbb
333 ccc
paste -d '' urfile2 urfile1
awk 'NR==FNR{a[NR]=$0}NR!=FNR{print $0,a[FNR]}' urfile1 urfile2
awk 'NR==FNR{a[FNR]=$0;next}{print $0,a[FNR]}' urfile1 urfile2
阅读(682) | 评论(0) | 转发(0) |