2017年3月10日

统计日志文件里访问量前十的ip并按从多到少排列

摘要: Apache座位web服务器。访问日志名为ex.log 先找出IP段,然后进行数量统计,最后对数量进行数量排序,取出最大值。 # cut -d "" -f 1 ex.log|uniq -c|sort -r|head -1|awk '{print $2}' 1、取出IP段: # cut -d " " 阅读全文

posted @ 2017-03-10 16:42 新手学代码 阅读(1515) 评论(0) 推荐(0)

导航