Bash colors: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Use colors within scripts <pre> for (( i = 30; i < 38; i++ )); do echo -e "\033[0;"$i"m Normal: (0;$i); \033[1;"$i"m Light: (1;$i)"; done </pre> Within the script: Where numb...") |
(No difference)
|
Revision as of 14:24, 20 March 2023
Use colors within scripts
for (( i = 30; i < 38; i++ )); do echo -e "\033[0;"$i"m Normal: (0;$i); \033[1;"$i"m Light: (1;$i)"; done
Within the script: Where number is defined from the output above
echo -e "\033[0;${NUMBER}mYOUR STRING YOU WANT IN COLOR"