y-sugaizumi
10/4/2019 - 1:50 AM

[Linux]カラー表示シェルスクリプト

#!bin/sh
cat <<'CMD'|bash
for x in {0..8};
    do for i in {30..37};
        do for a in {40..47};
            do echo -ne "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0;37;40m ";
        done;
        echo;
    done;
done;
echo ""
CMD