Skip to content

Instantly share code, notes, and snippets.

@r3bo0t
Created August 7, 2013 09:51
Show Gist options
  • Save r3bo0t/6172707 to your computer and use it in GitHub Desktop.
Save r3bo0t/6172707 to your computer and use it in GitHub Desktop.
echo "Killing all instances found matching for "$1
ps aux | grep $1 | awk '{print $2; system("kill -9 "$2"");}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment