bash-toys/toys/color-parade.sh

13 lines
215 B
Bash
Executable File

#!/bin/bash
#
# Prints all the available colors with their code.
#
color=16;
while [ $color -lt 245 ]; do
echo -e "$color: \\033[38;5;${color}mhello\\033[48;5;${color}mworld\\033[0m"
((color++));
done