工作中常用命令统计
netstat -antp|grep 20099|grep "68.25"|grep ESTABLISHED|awk '{print $7}'|awk -F '/' '{print $1,$2}'|sort |uniq -c|sort -nr
netstat -antp|grep 20099|grep "68.25"|grep ESTABLISHED|awk '{print $5}' |awk -F ':' '{print $1}'|sort |uniq -c |sort
netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'