使用grep和awk根据进程名获取PID jiage8866 2021-01-06 125 阅读1分钟 ps -ef | grep money | grep -v "grep"| awk '{print $2}'