Last active
May 29, 2018 04:55
-
-
Save jimratliff/c58cf00a13ab9832253c01819a56867c to your computer and use it in GitHub Desktop.
ASCII Rainbow: Script prints samples for the different ASCII color codes #bash #ASCII_colors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ########################################################################################## | |
| #!/usr/bin/env bash | |
| # | |
| # ANSI Rainbow | |
| # See, e.g., "How to change the output color of echo in Linux", Stack Overflow, 5/10/2011 | |
| # https://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux | |
| for (( i = 30; i < 38; i++ )); do echo -e "\033[0;"$i"m Normal: (0;$i); \033[1;"$i"m Light: (1;$i)"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment