该脚本能计算 IP 地址的访问数
cat access_log |grep -e /blog/ |
sort |
uniq -w15 -c |
cut -f 1 -d- |
sort -r -g
一个输出例子:
28 192.168.100.63
28 192.168.100.25
27 192.168.100.133
27 192.168.100.124
26 192.168.100.222
26 192.168.100.167
26 192.168.100.157
26 192.168.100.110
24 192.168.100.235
17 192.168.100.248
16 192.168.168.175
16 192.168.100.59
13 192.168.100.90
13 192.168.100.53