bash 인쇄 문 색상화

bash 인쇄 문 색상화

파란색으로 표시하고 싶은 다음 bash print 문이 있습니다.

local -r sgr="$( tput sgr0 )"
local -r wht="$( tput bold; tput setaf 15 )"
local -r blu="$( tput bold; tput setaf 39 )"

printf ' \u2263  %-*s%*s  \u2263\n'  "$cl" "${1:0:cl}"  "$cr" "${2:0:cr}"

관련 정보