统计重复IP并排序

#降序排列

sort ip20180623.log | uniq -c | sort -rn | more

#可以输出到文件哦

sort ip20180623.log | uniq -c | sort -rn >> ip_desc.log

#第一个sort先对文件内容排序

#uniq -c 对重复行进行技术

#第二个sort 加rn参数,按数字进行降序排列

#结果

posted on 2018-06-25 10:52  我以前不是胖子  阅读(652)  评论(0编辑  收藏  举报

导航