Skip to content

Instantly share code, notes, and snippets.

@hyukishi
Created February 6, 2019 17:22
Show Gist options
  • Save hyukishi/ec6f59eea7ec01fba3f90bc829518c3d to your computer and use it in GitHub Desktop.
Save hyukishi/ec6f59eea7ec01fba3f90bc829518c3d to your computer and use it in GitHub Desktop.
See comments at the top of the script
#!/bin/bash
# Created by Jeffery Grantham 01/04/2019
# The purpose of this script is to reattach all open screens in sequential order.
# As you exit a screen, you will be automatically attached to the next open screen.
for line in `screen -ls | grep Detached | awk '{print $1}'`
do `screen -r $line`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment