标签:10个 awk span net time sort shell 获取 gre
题目:
获取前10个time_wait连接最多的IP地址
答案:
netstat -n | grep TIME_WAIT | awk ‘{print $5}‘ | uniq -c | sort -nr | head -n10
shell编程题(三十)
原文地址:https://www.cnblogs.com/wanghao-boke/p/12268143.html