Created
October 2, 2019 11:54
-
-
Save naus3a/6e85379f8d37439c74f8068482c148f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LIST="$(screen -ls | grep '(*)' | awk -F'.' '{ print $1 }')" | |
if [ ${#LIST} -gt 0 ] | |
then | |
echo "Killing screens" | |
while read -r line; do | |
./killScreen.sh $line | |
done <<< "$LIST" | |
else | |
echo "No active screens" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment