Saturday, July 09, 2011

Linux/Unix echo colour coding 








Below colour code statements are very useful when your coding installation script in Linux/ UNIX environments



echo -e  "\033[1;30m";        
echo Dark Gray

echo -e "\033[0;30m";
echo Black

echo -e "\033[1;31m";
echo Light RED

echo -e "\033[0;32m";
echo Light Green

echo -e "\033[0;33m";
echo Brown

echo -e "\033[1;33m";
echo Yellow

echo -e "\033[0;34m";
echo blue

echo -e "\033[1;34m";
echo light blue

echo -e "\033[0;35m";
echo purple

echo -e "\033[0;36m";
echo Cyan

echo -e "\033[1;36m";
echo Light Gray

echo -e "\033[1;37m";
echo White

echo -e "\033[0m";
echo Neutral

No comments: