11

Tip #191   Kill matching processes

ps | grep processName | grep -v grep | awk '{print "kill -9 " $2}' | sh


Take the '| sh' off the end before running to check the commands that will be run.