标签:ESS pre color nbsp inux uniq log cat 技巧
获得访问前10位的IP地址:
[root@manage:~]# cat /var/log/nginx/access.log | awk ‘{print $1}‘|sort|uniq -c | sort -nr | head -10 10299 10.46.170.7 4 218.202.70.147 1 77.72.83.87 1 5.39.217.107 1 185.197.74.234 1 185.197.74.231
标签:ESS pre color nbsp inux uniq log cat 技巧
原文地址:https://www.cnblogs.com/FengGeBlog/p/10289239.html