Created
February 1, 2013 07:25
-
-
Save littlepea/4689894 to your computer and use it in GitHub Desktop.
shell
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
echo "Kill processes containing '$1'" | |
ps aux | grep $1 | grep -v grep | awk '{print$2}' | xargs kill -9 |
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
echo "Processes containing '$1'" | |
ps aux | grep $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put in ~/bin/ and chmod +x *.sh