the shell script to write a simple function, display color

If you repeatedly use a color display, or define a function more concrete, specific Internet to find what color it

! # / bin / the bash 
# define a red display function 
function echo_red () { 
    local What = $ * 
    echo -e " \ E [. 1; $ 31M What {} \ E [0m " 
} 
echo_red " test functions "

 

Guess you like

Origin www.cnblogs.com/yeyu1314/p/11426104.html