Skip to content

Instantly share code, notes, and snippets.

@CatTail
Created July 29, 2013 04:17
Show Gist options
  • Select an option

  • Save CatTail/6102118 to your computer and use it in GitHub Desktop.

Select an option

Save CatTail/6102118 to your computer and use it in GitHub Desktop.
Show numerical values for each of the 256 colors in bash
# from http://www.commandlinefu.com/commands/view/5879/show-numerical-values-for-each-of-the-256-colors-in-bash#comment
for code in {0..255}; do echo -e "\e[38;05;${code}m $code: Test"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment