BLACK=`tput setaf 0`
RED=`tput setaf 1`
GREEN=`tput setaf 2`
YELLOW=`tput setaf 3`
BLUE=`tput setaf 4`
MAGENTA=`tput setaf 5`
CYAN=`tput setaf 6`
WHITE=`tput setaf 7`

BOLD=`tput bold`
RESET=`tput sgr0`

echo -e "hello ${RED}some red text${RESET} world"

Creating Boxed for Dialog!

#!/bin/bash
function box_out() {
  input_char=$(echo "[email protected]" | wc -c)
  line=$(for i in `seq 0 $input_char`; do printf "─"; done)
  tput bold
  space=${line//─/ }
  echo " ┌${line}┐"
  printf ' │' ; echo -n "$space" ; printf "%s\n" '│';
  printf ' │ ' ; echo -n "[email protected]"; printf "%s\n" ' │';
  printf ' │' ; echo -n "$space" ; printf "%s\n" '│';
  echo " └${line}┘"
  tput sgr 0
}

function box_success() {
  tput bold
  tput setaf 2
  echo " ┌──────────┐"
  echo " │          │"
  echo " │ Success! │"
  echo " │          │"
  echo " └──────────┘"
  tput sgr0
}

function box_failed() {
  tput bold
  tput setaf 1
  echo " ┌─────────┐"
  echo " │         │"
  echo " │ Failed! │"
  echo " │         │"
  echo " └─────────┘"
  tput sgr0
}

box_out "Hello there!"
box_success
box_failed
echo $(( 3 + 2 ))         # Arithmetic expression for integers + - / * % **
echo $(( 5**(1+1) ))
echo abc{mnp}xyz          # Braces expansion
mkdir num_{0..z}