批量杀进程 ps awk grep ps aux |grep lt-newindexclient |grep -v grep |awk '{print $2}'|xargs kill -9 grep -v 反向输出,即过滤掉带有grep的输出。 xargs:传递参数