john lambert
asked on
netstat -na | find "8080" i see all opened and then i need to count,how can i see the nr. of how many they are?
netstat -na | find "8080" i see all and then i need to count,how can i see the nr. of how many they are?
for example are 20 i want to see them and then the number: 20
for example are 20 i want to see them and then the number: 20
TCP 192.168.1.110:48049 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48050 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48051 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48052 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48053 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48054 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48055 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48056 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48057 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48058 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48059 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48060 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48061 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48062 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48063 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48064 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48065 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48066 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48067 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48068 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48069 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48070 5.2.250.112:8080 ESTABLISHED
TCP 192.168.1.110:48071 5.2.250.112:8080 ESTABLISHED
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The Unix tool "wc" which can count characters, words and lines is also available for Windows, see here:
http://gnuwin32.sourceforge.net/packages/coreutils.htm
http://gnuwin32.sourceforge.net/packages/coreutils.htm
ASKER
thank you...
Open in new window
Note that this will lie to you if the search string appears in other contexts, as in the example above.