awk code standalone · 2010-10-26 17:53 · linux · 编程语言 · Markdown netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'