awk '{url[$1]++}END{for(i in url)print i,url[i]}' test 转载于:https://www.cnblogs.com/yangxiaochu/p/8559232.html