I have netstat command output like this
tcp 0 0 :::80 192.168.1.1 LISTEN
tcp 0 0 :::22 192.168.1.2 LISTEN
tcp 0 0 ::1:25 192.168.1.1 LISTEN
tcp 0 0 :::5666 192.168.1.2 LISTEN
I want a command to match 4 ip to 2 ip like this. Ip the same to match
192.168.1.1 LISTEN
192.168.1.2 LISTEN
How to do this? And I want to get step by step once IP ??
Thanks for Answer !