shell - Get Ports grep using netstat -v -
i want list of ports of established connections using netstat -v grep
.
i trying this:
sudo netstat -v | grep "established" | cut -d: -f5
any help?
please try
netstat -v| grep "established"| awk '{print $5}' | cut -d ":" -f2
Comments
Post a Comment