#!/usr/bin/env bash rgb_with_slashes=$(echo "$1" | sed -r 's,(..)(..),\1/\2/,') echo -en "\033]11;rgb:$rgb_with_slashes\007"