查询nginx访问日志中访问次数最多的前10个IP地址

cat log | cut -d ' ' -f 1 | sort | uniq -c | sort -nr | awk '{print $0}' | head -n 10
原文地址:https://www.cnblogs.com/sanduzxcvbnm/p/12787832.html