Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Kill all screen detached sessions
#!/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
You can’t perform that action at this time.