I am running cygwin, grep 2.21 on Windows 7.
I am trying to get all tcp connections from netstat, so I run the following:
netstat | grep -i "^(TCP|UDP)"
Now, it returns nothing, but when I run netstat
it clearly returns a bunch of tcp connections. I also tried :
netstat | egrep -i "^(TCP|UDP)"
Also returns nothing. What am I missing here? I thought that the caret means "begins with". Thanks.