Skip to content

Instantly share code, notes, and snippets.

@spudfkc
Last active December 20, 2015 10:30
Show Gist options
  • Save spudfkc/6115760 to your computer and use it in GitHub Desktop.
Save spudfkc/6115760 to your computer and use it in GitHub Desktop.
Kills all processes found with the given keyword
#!/bin/bash
echo $1
ps aux | grep $1 | grep -v grep | awk '{print $2}' | xargs kill -9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment