天天看點

【shell 】高亮輸出顯示

#!/bin/bash

blk='\e[1;30m'

 red='\e[1;31m'

 grn='\e[1;32m'

 yel='\e[1;33m'

 blu='\e[1;34m'

 mag='\e[1;35m'

 cyn='\e[1;36m'

 whi='\e[1;37m'

 dred='\e[0;31m'

 dgrn='\e[0;32m'

 dyel='\e[0;33m'

 dblu='\e[0;34m'

 dmag='\e[0;35m'

 dcyn='\e[0;36m'

 dwhi='\e[0;37m'

 res='\e[0m'

echo -e " 01- ${blk} blk ${res} "

 echo -e " 02- ${red} red ${res} "

 echo -e " 03- ${grn} grn ${res} "

 echo -e " 04- ${yel} yel ${res} "

 echo -e " 05- ${blu} blu ${res} "

 echo -e " 06- ${mag} mag ${res} "

 echo -e " 07- ${cyn} cyn ${res} "

 echo -e " 08- ${whi} whi ${res} "

 echo -e " 09- ${dred} dred ${res} "

 echo -e " 10- ${dgrn} dgrn ${res} "

 echo -e " 11- ${dyel} dyel ${res} "

 echo -e " 12- ${dblu} dblu ${res} "

 echo -e " 13- ${dmag} dmag ${res} "

 echo -e " 14- ${dcyn} dcyn ${res} "

 echo -e " 15- ${dwhi} dwhi ${res} "

【shell 】高亮輸出顯示