使用grep和awk根据进程名获取PID

125 阅读1分钟
ps -ef | grep money | grep -v "grep"| awk '{print $2}'