Skip to content

Instantly share code, notes, and snippets.

@jimratliff
Last active May 29, 2018 04:55
Show Gist options
  • Select an option

  • Save jimratliff/c58cf00a13ab9832253c01819a56867c to your computer and use it in GitHub Desktop.

Select an option

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
##########################################################################################
#!/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