Skip to content

Instantly share code, notes, and snippets.

@NearHuscarl
Created February 19, 2018 10:38
Show Gist options
  • Save NearHuscarl/555b1b696e5af759a99f7eca68248908 to your computer and use it in GitHub Desktop.
Save NearHuscarl/555b1b696e5af759a99f7eca68248908 to your computer and use it in GitHub Desktop.
print_color.sh
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)"
reset="$(tput sgr0)"
echo "${red}Hello ${green}world ${magenta}!${reset}"
printf "${red}Hello ${green}world ${magenta}!${reset}\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment