Skip to content

Instantly share code, notes, and snippets.

@ryshi
Created April 25, 2014 05:03
Show Gist options
  • Save ryshi/11278128 to your computer and use it in GitHub Desktop.
Save ryshi/11278128 to your computer and use it in GitHub Desktop.
netstat -n| awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment