linux diff 小工具


diff mid1.txt mid2.txt | grep "<" | awk -F "<" '{print "http://weibo.com/3069348215/"substr($2,2)}'

此命令作用是找出mid1.txt与mid2.txt中不同的MID,并拼接为相应的微博URL地址