Last active
November 1, 2020 15:07
-
-
Save sriramster/e5fd289bf6d8cf91df26 to your computer and use it in GitHub Desktop.
Bash color codes
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 0;30 Dark Gray 1;30 | |
#Red 0;31 Light Red 1;31 | |
#Green 0;32 Light Green 1;32 | |
#Brown/Orange 0;33 Yellow 1;33 | |
#Blue 0;34 Light Blue 1;34 | |
#Purple 0;35 Light Purple 1;35 | |
#Cyan 0;36 Light Cyan 1;36 | |
#Light Gray 0;37 White 1;37 | |
#No color 0; | |
#!/bin/bash | |
NO_COLOR='\033[0m' | |
RED='\033[0;31m' | |
echo "${RED} Danger ${NO_COLOR}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment