Created
July 19, 2015 22:38
-
-
Save MattLoyeD/744896cd815c6a547acb to your computer and use it in GitHub Desktop.
Kill all screen detached sessions
This file contains 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 | |
# This line kills everething, be carefull, maybe do a screen -ls first to watch what is running | |
screen -ls | grep -o '[0-9]*\.[a0-Z9]*' | while read -r v ; do screen -X -S $v quit; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment