Use escape sequences in heredoc Edit Delete bash color colour escape heredoc sequence sh sed $'s/\\\\033/\033/g' <<-EOF >&2 \033[1;37mBla,\033[m \033[1;37mbla,\033[m \033[1;37mbla.\033[m EOF