spellme.sh: added highlighting for colours

This commit is contained in:
Oliver Schraml 2018-03-22 08:37:17 +01:00
parent 2425426b82
commit 637b0e9a1d
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
for i in $(seq 1 ${#1})
do
echo -e $( echo -e "$(echo "${1:i-1:1}" | \
sed -E 's/([0-9])/\\\\033[1;31m\1\\\\033[00m/' | \
sed -e "s/^[aA]$/\\\\033[1;31mA\\\\033[00mLFA/" | \
sed -e "s/^[bB]$/\\\\033[1;31mB\\\\033[00mRAVO/" | \
sed -e "s/^[cC]$/\\\\033[1;31mC\\\\033[00mHARLIE/" | \