前言
- OS: Windows 7, v.6.1, x86_64 / win32
作用
管道符(|)作用是将符号前的进程输出作为符号后进程的输入。
用法
cmd> netstat -abno|findstr "80"|findstr "LISTENING"
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 2100
TCP 127.0.0.1:8001 0.0.0.0:0 LISTENING 7576
TCP 127.0.0.1:8002 0.0.0.0:0 LISTENING 7576
cmd> tasklist|findstr "2100"
nginx.exe 2100 Services 0 8,612 K