本人的脚本
#!/bin/awk -f
# author :expert1
#date :2010-10-03
#name :test.awk
#USAGE: awk -f test.awk book3 book3
NR==FNR{if(NF==2)a[$1];else a[$1$2$3]
}
NR>FNR{
for(i in a) {
if (split(i,b,"/")>1)
{if(($NF==b[1])||($NF==b[2]))print b[1]" / "b[2]"\t"$NF}
else {if(($NF==i))print i"\t"$NF}
}
}
原文链接
阅读(1359) | 评论(0) | 转发(0) |