一、echo命令(带参数-e)
cat color.sh
#!/bin/bash
echo -e “\033[30m black \033[0m”
echo -e “\033[31m red \033[0m”
echo -e “\033[32m green \033[0m”
echo -e “\033[33m yellow \033[0m”
echo -e “\033[34m blue \033[0m”
echo -e “\033[35m purple \033[0m”
echo -e “\033[36m cyan \033[0m”
echo -e “\033[37m white \033[0m”