Skip to content

Instantly share code, notes, and snippets.

@MattLoyeD
Created July 19, 2015 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MattLoyeD/744896cd815c6a547acb to your computer and use it in GitHub Desktop.
Save MattLoyeD/744896cd815c6a547acb to your computer and use it in GitHub Desktop.
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