Last active
December 13, 2017 17:02
-
-
Save martiis/ff87ccd9b7a44dd7c6fb470d72c54e80 to your computer and use it in GitHub Desktop.
Shell for killing process
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
kill -9 $(ps | grep "$@" | grep -v grep | awk '{ print $1 }') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment