connmap
connmap copied to clipboard
Simplify the pipe command to read IP addresses
The awk command already includes the functionality of grep and cut, so there is no need to have four processes when two are enough...
Feel free to try:
ss -atun4 | awk '$2=="ESTAB" {split($6,a,":"); print a[1]}'
Signed-off-by: Alexios Zavras (zvr) [email protected]