Skip to content

Instantly share code, notes, and snippets.

@KINGSABRI
Created July 28, 2013 19:45
Show Gist options
  • Save KINGSABRI/6099831 to your computer and use it in GitHub Desktop.
Save KINGSABRI/6099831 to your computer and use it in GitHub Desktop.
Print all bash colors with its codes
#!/usr/bin/bash
for x in 0 1 4 5 7 8; do for i in `seq 30 37`; do for a in `seq 40 47`; do echo -ne "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0;37;40m "; done; echo; done; done; echo "";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment