mirror of
https://github.com/trimstray/the-book-of-secret-knowledge
synced 2024-12-28 09:59:00 +01:00
Pedantic refactoring to save a few forks
This commit is contained in:
parent
b317212f74
commit
dd6e43c7f2
1 changed files with 1 additions and 1 deletions
|
@ -2645,7 +2645,7 @@ ___
|
||||||
###### Graph # of connections for each hosts
|
###### Graph # of connections for each hosts
|
||||||
|
|
||||||
```bash
|
```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 "" }'
|
sort | uniq -c | awk '{ printf("%s\t%s\t",$2,$1) ; for (i = 0; i < $1; i++) {printf("*")}; print "" }'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue