Skip to content

Instantly share code, notes, and snippets.

@filipsPL
Created May 5, 2016 08:02
Show Gist options
  • Save filipsPL/f5b462516f8d042907ed34e986da6a72 to your computer and use it in GitHub Desktop.
Save filipsPL/f5b462516f8d042907ed34e986da6a72 to your computer and use it in GitHub Desktop.
Loop over all screen sessions
#!/bin/bash
for ses in `screen -r | grep "(Detached)"| cut -f 2`; do screen -r "$ses"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment