Screen

Inline screen command when you don’t need the output

screen -dmS **name** nice **stuff**

Leave a screen session in a screen session

ctrl+a then a d

Source

Unicode

Add U to screen command

screen -dmSU

Kill sessions containing keyword

#!/bin/bash

# Kill detached or selected sessions

case $# in
    0) echo "No argument provided"; exit 1;;
    1) FILTER="${1}";;
    *) echo "Only one argument can be provided" >&2; exit 1;;
esac

SESSIONS=$(screen -ls | grep "$FILTER" | cut -d. -f1 | awk '{print $1}')
# Only kill when there are sessions
if ! [ -z "${SESSIONS[0]}" ]
then
        printf "%s\n" "${SESSIONS[@]}" | xargs kill
        screen -wipe
else
        echo "No session found."
fi