将查询出来的进程杀掉

ps -ef | grep xxx | grep -v grep | awk '{print $2}' | xargs kill -9

原文地址:https://www.cnblogs.com/cyf18/p/14289106.html