SHARE
TWEET

Untitled

a guest Oct 20th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. LIST="$(screen -ls | grep '(*)' | awk -F'.' '{ print $1 }')"
  4. if [ ${#LIST} -gt 0 ]
  5. then
  6.     echo "Killing screens"
  7.     while read -r line; do
  8.         ./killScreen.sh $line
  9.     done <<< "$LIST"
  10. else
  11.     echo "No active screens"
  12. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top