代码:
#!/bin/bash
echo -e "\e[30m test content黑 \e[0m"
echo -e "\e[31m test content红 \e[0m"
echo -e "\e[32m test content绿 \e[0m"
echo -e "\e[33m test content黄 \e[0m"
echo -e "\e[34m test content蓝 \e[0m"
echo -e "\e[35m test content紫 \e[0m"
echo -e "\e[36m test content天蓝 \e[0m"
echo -e "\e[37m test content白 \e[0m"
现象: