Answers for "kill all process that match in grep"

3

how to kill tasks using grep

kill -9 $(ps aux | grep KeyWordHere | awk '{print $2}')
Posted by: Guest on January-09-2020
0

kill all process that match in grep

ps aux | grep -ie amarok | awk '{print "kill -9 " $2}'
ps aux | grep -ie amarok | awk '{print $2}' | xargs kill -9
Posted by: Guest on September-28-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language