IP相关统计
统计IP访问量(独立ip访问数量)
`
awk '{print $1}' access.log | sort -n | uniq | wc -l`
查看某一时间段的IP访问量(4-5点)grep "07/Apr/2017:0[4-5]" access.log | awk '{print $1}' | sort | uniq -c| sort -nr | wc -l
统计IP访问量(独立ip访问数量)
`
awk '{print $1}' access.log | sort -n | uniq | wc -l`
查看某一时间段的IP访问量(4-5点)grep "07/Apr/2017:0[4-5]" access.log | awk '{print $1}' | sort | uniq -c| sort -nr | wc -l