We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
netstat -na|awk '/^tcp/ {++S[$NF]} END {for(i in S) print i,S[i]}'