Skip to content

Instantly share code, notes, and snippets.

@nanpuyue
Created August 19, 2018 15:58
Show Gist options
  • Save nanpuyue/86530faa3bcf5f28c0d6bfb9614de1e7 to your computer and use it in GitHub Desktop.
Save nanpuyue/86530faa3bcf5f28c0d6bfb9614de1e7 to your computer and use it in GitHub Desktop.
#!/bin/bash
for ((i=0; i<256; i++)); do
printf "\e[48;5;${i}m %03d \e[0m" $i
(((i + 3) % 6 == 0 )) && printf '\n'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment