题解 | #nginx日志分析3-统计访问3次以上的IP#
nginx日志分析3-统计访问3次以上的IP
https://www.nowcoder.com/practice/e1846855de79495fbb017b8ddf6ba969
awk 'BEGIN{PROCINFO["sorted_in"]="@val_num_desc"}{arr[$1]++}END{for(i in arr){if(arr[i]>3){print arr[i],i}}}' nowcoder.txt
nginx日志分析3-统计访问3次以上的IP
https://www.nowcoder.com/practice/e1846855de79495fbb017b8ddf6ba969
awk 'BEGIN{PROCINFO["sorted_in"]="@val_num_desc"}{arr[$1]++}END{for(i in arr){if(arr[i]>3){print arr[i],i}}}' nowcoder.txt
相关推荐