Created
November 24, 2011 14:33
-
-
Save joneskoo/1391473 to your computer and use it in GitHub Desktop.
irssi killer - kill all irssis, 50 at a time
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/bash | |
IRSSI=$(pgrep irssi) | |
while [[ -n $IRSSI ]]; do | |
tokill=$(pgrep irssi | head -n 100) | |
kill $tokill | |
echo "Killing 100 irssis. Hit enter to kill more." | |
echo $(pgrep irssi|wc -l) to go | |
read | |
IRSSI=$(pgrep irssi) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment