shell(13) : 打印带颜色字体
参考 :https://www.jb51.net/article/141286.htmcat > log.sh << 'EOF'#!/bin/shfunction info(){ DATE_N=`date "+%Y-%m-%d %H:%M:%S"` echo -e "$DATE_N $@ "}function success(){ DATE_N=`date "+%Y-%m-%d %H:%