#!/bin/bash i=30 for color in "black" "red" "green" "yellow" "blue" "purple" "cyan" "white" ; do for attr in 0 1; do if [[ $attr == 1 ]]; then prefix="bold/light " else prefix="" fi echo -en "\033[${attr};${i}mThis is ${prefix}${color} text\033[0m\n" done echo # newline ((i++)) done