统计nginx access.log文件中对ip地址去重并统计重复数access.log awk '{h[$1]++}END{for(i in h) print i,h[i]}' /var/log/nginx/access.log |sort -nrk2 |head | column -t