shell 统计访问IP和总和并排序

awk '{ip[$1]+=1} END {for(i in ip){print ip[i],i}}' /var/log/httpd/access_log-20210926 | sort -nr