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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -