netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' 端口统计 netstat -n |grep 1521| awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' 句柄统计 lsof -n|awk '{print $2}'|sort|uniq -c|sort -nr|more cat localhost_access_log.2017-06-08.txt|awk '{if($5 = "/llzqapp/indexapp.html" ){print $0}}' > testa.log