标签:
netstat -n | awk ‘/^tcp/{print $5}‘ | awk -F: ‘!/^::/{print $1}‘ | sort | uniq -c | sort -rn | awk ‘BEGIN{printf "%-10s%s\n","ConNum","IP"}{printf "%-10s%s\n",$1,$2}‘
命令解释:
cat $access_file | awk ‘{print $1}‘ | sort |uniq -c | sort -rn | head -n 10
命令解释:
标签:
原文地址:http://www.cnblogs.com/chenny7/p/4813962.html