Skip to content

Instantly share code, notes, and snippets.

@naus3a
Created October 2, 2019 11:54
Show Gist options
  • Save naus3a/6e85379f8d37439c74f8068482c148f9 to your computer and use it in GitHub Desktop.
Save naus3a/6e85379f8d37439c74f8068482c148f9 to your computer and use it in GitHub Desktop.
#!/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