shell 彩色 echo
shell 彩色 echo 1 2 3 4 5 #黑底红字 echo -e 'E[31;40mThis prints in red.'; tput sgr0 1 2 3 4 5 #!/bin/bash echo -e 'E[COLOR1;COLOR2mSome text goes here.' COLOR1: Foreground Color COLOR2: Background Color 1 2 3 4 5 6 7 #!/bin/bash echo -e 'E[32;40mThis prints in green.'; tput sgr0 echo -e:enable interpretation of backslash escapes -e "允