Created
February 19, 2018 10:38
-
-
Save NearHuscarl/555b1b696e5af759a99f7eca68248908 to your computer and use it in GitHub Desktop.
print_color.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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