需求:打印出访问量为前十的ip
http 日志存放地址 /etc/httpd/logs
[root@yuan logs]# awk '{print $1}' access.log |sort |uniq -c | sort -nr |head -n 10
40 118.24.13.158
16 122.225.192.130
15 134.119.212.87
12 80.82.70.187
9 220.202.133.120
9 172.104.108.109
7 187.67.74.55
6 46.246.42.133
6 120.132.3.65
5 80.82.78.50
uniq -c:打印每一重复行出现的次数。(并去掉重复行)