Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bash colorized output functions
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[1;34m'
CLEAR='\033[0;0m'
red() {
printf "${RED}$1${CLEAR}\n"
}
green() {
printf "${GREEN}$1${CLEAR}\n"
}
yellow() {
printf "${YELLOW}$1${CLEAR}\n"
}
blue() {
printf "${BLUE}$1${CLEAR}\n"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.