awk '{print "\033[0;32m"$1"\033[0m","\033[0;32m"$2"\033[0m","\033[0;37m"$3"\033[0m"} }' chrono.txt
一切都是绿色的
我该如何进行(如有可能)?
function red(s) { printf "\033[1;31m" s "\033[0m " } function green(s) { printf "\033[1;32m" s "\033[0m " } function blue(s) { printf "\033[1;34m" s "\033[0m " } { print red($1),green($2),blue($3) }