Skip to content

Instantly share code, notes, and snippets.

@softprops
Forked from defunkt/murder.sh
Created November 3, 2010 05:39
Show Gist options
  • Save softprops/660827 to your computer and use it in GitHub Desktop.
Save softprops/660827 to your computer and use it in GitHub Desktop.
# sh function to murder all running processes matching a pattern
# thanks 3n: http://twitter.com/3n/status/19113206105
murder () {
ps | grep $1 | grep -v grep | awk '{print $1}' | xargs kill -9
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment