windows下的类似grep命令findstr
findstr后面跟的字符串不能加引号
C:\Users\Administrator>netstat -an|findstr 10.1.151
TCP 10.1.50.5:52383 10.1.151.3:1521 ESTABLISHED
TCP 10.1.50.5:52385 10.1.151.3:1521 ESTABLISHED
TCP 10.1.50.5:52388 10.1.151.3:1521 ESTABLISHED
TCP 10.1.50.5:52389 10.1.151.3:1521 ESTABLISHED
TCP 10.1.50.5:52390 10.1.151.3:1521 ESTABLISHED
TCP 10.1.50.5:52391 10.1.151.3:1521 ESTABLISHED