Skip to content

Instantly share code, notes, and snippets.

@tonybruess
Last active December 19, 2017 05:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonybruess/8890246 to your computer and use it in GitHub Desktop.
Save tonybruess/8890246 to your computer and use it in GitHub Desktop.
Resume all screen sessions
IFS=$'\n'
for line in $(screen -ls | head -n -2 | sed 1d); do
screen -r `echo $line | cut -f2`;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment