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} "
本文出自 “毛毛虫” 博客,请务必保留此出处http://rhca30.blog.51cto.com/527681/1590733
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。