1、echo:display en empty line;
2、echo -e:enable interpretation of backslash escapes;
3、echo -n:do not output the trailing newline;
4、echo -e "\033[fgColor;bgColorm字符串\033[0m"
fgColor:30-》37(黑、红、绿、黄、蓝、紫、青、白)
bgColor:40-》47(黑、红、绿、黄、蓝、紫、青、白)
本文出自 “frank_zfh” 博客,请务必保留此出处http://zengfanhong.blog.51cto.com/8894077/1793060
原文地址:http://zengfanhong.blog.51cto.com/8894077/1793060