shell 日志统计常用脚本
查看web访问量前十的ipawk '{print $1}' access.log |sort | uniq -c | sort -nr | head -n 10 查看某一天访问量前十IP
cat access.log | grep "07/Nov/2013" | awk '{print $1}' |uniq -c | sort -nr | head -n 1 查看访问量前十页面
awk '{print $11}' access.log | sort | uniq -c | sort -nr | head -n 10
页:
[1]