只查看tomcat进程,不包括grep

ps aux | grep tomcat  | grep -v "grep" | awk '{print $2}'

原文地址:https://www.cnblogs.com/forturn/p/5671094.html