Colour Codes for Echo
Introduction
How to colour echo commands. Very useful for making scripts more readable. These codes are use by scripts on this site.
Usage
Place the following commands at the top of your scripts
my_dir="/u01/app/oracle/DBA/ORACLE/SCRIPTS"
source "$my_dir/colors.ksh"
The use the following commands to output color echo commands
echo -e ${CYAN}"This is CYAN"${NORM}
Color Codes for echo -e Commands
############################################################################
#
# Color Codes
#
############################################################################
ESC_SEQ="\033["
NORM=$ESC_SEQ"0m"
RED=$ESC_SEQ"0;31m"
LRED=$ESC_SEQ"1;31m"
GREEN="\033[0;32m"
LGREEN=$ESC_SEQ"1;32m"
YELLOW="\033[0;33m"
LYELLOW="\033[1;33m"
CYAN="\033[0;36m"
PINK="\033[1;35m"
LPURPLE="\033[1;35m"
BLUE="\033[0;34m"
LBLUE="\033[1;34m"
BOLD="\033[1m"