1、获取tomcat当天访问频率高的ip并排序 awk '{print $1}' localhost_access_log.2016-07-21.txt | sort | uniq -c | sort -rn | awk '{if($1>500)print $0}' 1