Shell,根据进程关键字得到进程id 2016年02月03日 标签:Linux, Shell Tips ps -aef | grep nginx | grep -v grep | awk '{print $2}'