Windows机器bat脚本,用于过滤监控特定的端口号 for /f “skip=4 tokens=2” %%i in (‘netstat -an -p tcp’) do if %%i==127.0.0.1:50011 echo %%i