1. #!/bin/sh
    2. set -e
    3. for i in {0..50}; do
    4. printf '\\e['$i"m: \e["$i"m I Love Color \e[0m\n"
    5. done

    输入结果:
    image.png