Skip to content

A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools and more.

Pedantic refactoring to save a few forks

lbonanomidd6e43c7f2f3
diff --git a/README.md b/README.md
index 6b7af65..e6c2de6 100644
--- a/README.md
+++ b/README.md
@@ -2645,7 +2645,7 @@ ___
###### Graph # of connections for each hosts
```bash
-netstat -an | awk '/ESTABLISHED/ { split($5,ip,":"); if (ip[1] !~ /^$/) print ip[1] }' | \
+netstat -an | awk '/ESTABLISHED/ { split($5,ip,":"); if (ip[1] !~ /^$/) print ip[1] }' | \
sort | uniq -c | awk '{ printf("%s\t%s\t",$2,$1) ; for (i = 0; i < $1; i++) {printf("*")}; print "" }'
```