Showing posts with label awk. Show all posts
Showing posts with label awk. Show all posts

4/20/2010

connection count

nice command for counting connection:

netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n