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

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -