screen -ls | grep "Detached" | awk '{print $1}' | xargs -i screen -X -S {} quit


Posted by code cat