Skip to content

Instantly share code, notes, and snippets.

@whirmill
Created May 16, 2017 17:19
Show Gist options
  • Save whirmill/9ea997b5f98a6321f5c91b88760945eb to your computer and use it in GitHub Desktop.
Save whirmill/9ea997b5f98a6321f5c91b88760945eb to your computer and use it in GitHub Desktop.
function slaughter() { ps aux | grep '['${1:0:1}']'${1:1} | awk '{print $2}' | xargs -r kill -9 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment