标签:gre kill nbsp cat int lin grep 打印 xargs
ps -ef | grep tomcat | awk ‘{print $2}‘ | grep ‘^3‘ | xargs kill -9
ps -ef | grep tomcat (查看tomcat 所有进程)
awk ‘{print $2}‘ (打印输出第二行)
grep ‘^3‘ (匹配以3 开头的进程号)
xargs kill -9 (将信号传输给kill)
标签:gre kill nbsp cat int lin grep 打印 xargs
原文地址:https://www.cnblogs.com/MUQINGFENG123/p/13162073.html