minor fix

This commit is contained in:
@trimstray 2019-03-11 15:09:22 +01:00 committed by GitHub
parent dd6e43c7f2
commit debd4e06a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 "" }'
```