链接两个文件
时间:2010-10-06 来源:jing494485758
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
相关阅读 更多 +