Even easier, find /c
.
ex:
netstat -an | find /c "ESTABLISHED"
find /c
: Displays only the count of lines containing the string.
Even easier, find /c
.
ex:
netstat -an | find /c "ESTABLISHED"
find /c
: Displays only the count of lines containing the string.