From 40d2f15cffccb462ca3611fcc60567274010413e Mon Sep 17 00:00:00 2001 From: Oliver Schraml Date: Mon, 15 Oct 2018 17:10:56 +0200 Subject: [PATCH] spellme.sh: repaced tabs with spaces --- spellme.sh | 114 ++++++++++++++++++++++++++--------------------------- 1 file changed, 57 insertions(+), 57 deletions(-) diff --git a/spellme.sh b/spellme.sh index a575def..ff90d76 100755 --- a/spellme.sh +++ b/spellme.sh @@ -3,63 +3,63 @@ replacearray=('r1=(aA A LFA)' 'rX=()') for i in $(seq 1 ${#1}) do - echo -e $( echo -e "$(echo "${1:i-1:1}" | \ + 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/" | \ - sed -e "s/^[dD]$/\\\\033[1;31mD\\\\033[00mELTA/" | \ - sed -e "s/^[eE]$/\\\\033[1;31mE\\\\033[00mCHO/" | \ - sed -e "s/^[fF]$/\\\\033[1;31mF\\\\033[00mOXTROT/" | \ - sed -e "s/^[gG]$/\\\\033[1;31mG\\\\033[00mOLF/" | \ - sed -e "s/^[hH]$/\\\\033[1;31mH\\\\033[00mOTEL/" | \ - sed -e "s/^[iI]$/\\\\033[1;31mI\\\\033[00mNDIA/" | \ - sed -e "s/^[jJ]$/\\\\033[1;31mJ\\\\033[00mULIETT/" | \ - sed -e "s/^[kK]$/\\\\033[1;31mK\\\\033[00mILO/" | \ - sed -e "s/^[lL]$/\\\\033[1;31mL\\\\033[00mIMA/" | \ - sed -e "s/^[mM]$/\\\\033[1;31mM\\\\033[00mIKE/" | \ - sed -e "s/^[nN]$/\\\\033[1;31mN\\\\033[00mOVEMBER/" | \ - sed -e "s/^[oO]$/\\\\033[1;31mO\\\\033[00mSCAR/" | \ - sed -e "s/^[pP]$/\\\\033[1;31mP\\\\033[00mAPA/" | \ - sed -e "s/^[qQ]$/\\\\033[1;31mQ\\\\033[00mUEBEC/" | \ - sed -e "s/^[rR]$/\\\\033[1;31mR\\\\033[00mOMEO/" | \ - sed -e "s/^[sS]$/\\\\033[1;31mS\\\\033[00mIERRA/" | \ - sed -e "s/^[tT]$/\\\\033[1;31mT\\\\033[00mANGO/" | \ - sed -e "s/^[uU]$/\\\\033[1;31mU\\\\033[00mNIFORM/" | \ - sed -e "s/^[vV]$/\\\\033[1;31mV\\\\033[00mICTOR/" | \ - sed -e "s/^[wW]$/\\\\033[1;31mW\\\\033[00mHISKEY/" | \ - sed -e "s/^[xX]$/\\\\033[1;31mX\\\\033[00m-RAY/" | \ - sed -e "s/^[yY]$/\\\\033[1;31mY\\\\033[00mANKEE/" | \ - sed -e "s/^[zZ]$/\\\\033[1;31mZ\\\\033[00mULU/" | \ - sed -e "s/^\*$/\\\\033[1;31m\*\\\\033[00mASTERISK/" | \ - sed -e "s/^\'$/\\\\033[1;31m\'\\\\033[00mSINGLE QUOTE/" | \ - sed -e "s/^\"$/\\\\033[1;31m\"\\\\033[00mDOUBLE QUOTE/" | \ - sed -e "s/^\^$/\\\\033[1;31m\^\\\\033[00mCIRCUMFLEX/" | \ - sed -e "s/^\_$/\\\\033[1;31m\_\\\\033[00mUNDERSCORE/" | \ - sed -e "s/^\-$/\\\\033[1;31m\-\\\\033[00mHYPHEN/" | \ - sed -e "s/^\&$/\\\\033[1;31m\&\\\\033[00mAMPERSAND/" | \ - sed -e "s/^\%$/\\\\033[1;31m\%\\\\033[00mPERCENT/" | \ - sed -e "s/^\~$/\\\\033[1;31m\~\\\\033[00mTILDE/" | \ - sed -e "s/^\/$/\\\\033[1;31m\/\\\\033[00mSLASH/" | \ - sed -e "s/^\\$/\\\\033[1;31m\\\\\\033[00mBACKSLASH/" | \ - sed -e "s/^($/\\\\033[1;31m\(\\\\033[00mOPENING PARENTHESIS/" | \ - sed -e "s/^)$/\\\\033[1;31m\)\\\\033[00mCLOSING PARENTHESIS/" | \ - sed -e "s/^\[$/\\\\033[1;31m\[\\\\033[00mOPENING BRACKET/" | \ - sed -e "s/^\]$/\\\\033[1;31m\]\\\\033[00mCLOSING BRACKET/" | \ - sed -e "s/^{$/\\\\033[1;31m\{\\\\033[00mOPENING (CURLY)BRACE/" | \ - sed -e "s/^}$/\\\\033[1;31m\}\\\\033[00mCLOSING (CURLY)BRACE/" | \ - sed -e "s/^<$/\\\\033[1;31m\<\\\\033[00mOPENING ANGLE BRACKET/" | \ - sed -e "s/^>$/\\\\033[1;31m\>\\\\033[00mCLOSING ANGLE BRACKET/" | \ - sed -e "s/^\#$/\\\\033[1;31m\#\\\\033[00mHASH/" | \ - sed -e "s/^\@$/\\\\033[1;31m\@\\\\033[00mAT-SIGN/" | \ - sed -e "s/^\.$/\\\\033[1;31m\.\\\\033[00mDOT/" | \ - sed -e "s/^\,$/\\\\033[1;31m\,\\\\033[00mCOMMA/" | \ - sed -e "s/^\:$/\\\\033[1;31m\:\\\\033[00mCOLON/" | \ - sed -e "s/^\;$/\\\\033[1;31m\;\\\\033[00mSEMICOLON/" | \ - sed -e "s/^\?$/\\\\033[1;31m\?\\\\033[00mQUESTION MARK/" | \ - sed -e "s/^\!$/\\\\033[1;31m\!\\\\033[00mEXCLAMATION MARK/" | \ - sed -e "s/^\+$/\\\\033[1;31m\+\\\\033[00mPLUS SIGN/" | \ - sed -e "s/^\=$/\\\\033[1;31m\=\\\\033[00mEQUALS/" | \ - sed -e "s/^\ $/\\\\033[1;31m\ \\\\033[00mSPACE/" \ + 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/" | \ + sed -e "s/^[dD]$/\\\\033[1;31mD\\\\033[00mELTA/" | \ + sed -e "s/^[eE]$/\\\\033[1;31mE\\\\033[00mCHO/" | \ + sed -e "s/^[fF]$/\\\\033[1;31mF\\\\033[00mOXTROT/" | \ + sed -e "s/^[gG]$/\\\\033[1;31mG\\\\033[00mOLF/" | \ + sed -e "s/^[hH]$/\\\\033[1;31mH\\\\033[00mOTEL/" | \ + sed -e "s/^[iI]$/\\\\033[1;31mI\\\\033[00mNDIA/" | \ + sed -e "s/^[jJ]$/\\\\033[1;31mJ\\\\033[00mULIETT/" | \ + sed -e "s/^[kK]$/\\\\033[1;31mK\\\\033[00mILO/" | \ + sed -e "s/^[lL]$/\\\\033[1;31mL\\\\033[00mIMA/" | \ + sed -e "s/^[mM]$/\\\\033[1;31mM\\\\033[00mIKE/" | \ + sed -e "s/^[nN]$/\\\\033[1;31mN\\\\033[00mOVEMBER/" | \ + sed -e "s/^[oO]$/\\\\033[1;31mO\\\\033[00mSCAR/" | \ + sed -e "s/^[pP]$/\\\\033[1;31mP\\\\033[00mAPA/" | \ + sed -e "s/^[qQ]$/\\\\033[1;31mQ\\\\033[00mUEBEC/" | \ + sed -e "s/^[rR]$/\\\\033[1;31mR\\\\033[00mOMEO/" | \ + sed -e "s/^[sS]$/\\\\033[1;31mS\\\\033[00mIERRA/" | \ + sed -e "s/^[tT]$/\\\\033[1;31mT\\\\033[00mANGO/" | \ + sed -e "s/^[uU]$/\\\\033[1;31mU\\\\033[00mNIFORM/" | \ + sed -e "s/^[vV]$/\\\\033[1;31mV\\\\033[00mICTOR/" | \ + sed -e "s/^[wW]$/\\\\033[1;31mW\\\\033[00mHISKEY/" | \ + sed -e "s/^[xX]$/\\\\033[1;31mX\\\\033[00m-RAY/" | \ + sed -e "s/^[yY]$/\\\\033[1;31mY\\\\033[00mANKEE/" | \ + sed -e "s/^[zZ]$/\\\\033[1;31mZ\\\\033[00mULU/" | \ + sed -e "s/^\*$/\\\\033[1;31m\*\\\\033[00mASTERISK/" | \ + sed -e "s/^\'$/\\\\033[1;31m\'\\\\033[00mSINGLE QUOTE/" | \ + sed -e "s/^\"$/\\\\033[1;31m\"\\\\033[00mDOUBLE QUOTE/" | \ + sed -e "s/^\^$/\\\\033[1;31m\^\\\\033[00mCIRCUMFLEX/" | \ + sed -e "s/^\_$/\\\\033[1;31m\_\\\\033[00mUNDERSCORE/" | \ + sed -e "s/^\-$/\\\\033[1;31m\-\\\\033[00mHYPHEN/" | \ + sed -e "s/^\&$/\\\\033[1;31m\&\\\\033[00mAMPERSAND/" | \ + sed -e "s/^\%$/\\\\033[1;31m\%\\\\033[00mPERCENT/" | \ + sed -e "s/^\~$/\\\\033[1;31m\~\\\\033[00mTILDE/" | \ + sed -e "s/^\/$/\\\\033[1;31m\/\\\\033[00mSLASH/" | \ + sed -e "s/^\\$/\\\\033[1;31m\\\\\\033[00mBACKSLASH/" | \ + sed -e "s/^($/\\\\033[1;31m\(\\\\033[00mOPENING PARENTHESIS/" | \ + sed -e "s/^)$/\\\\033[1;31m\)\\\\033[00mCLOSING PARENTHESIS/" | \ + sed -e "s/^\[$/\\\\033[1;31m\[\\\\033[00mOPENING BRACKET/" | \ + sed -e "s/^\]$/\\\\033[1;31m\]\\\\033[00mCLOSING BRACKET/" | \ + sed -e "s/^{$/\\\\033[1;31m\{\\\\033[00mOPENING (CURLY)BRACE/" | \ + sed -e "s/^}$/\\\\033[1;31m\}\\\\033[00mCLOSING (CURLY)BRACE/" | \ + sed -e "s/^<$/\\\\033[1;31m\<\\\\033[00mOPENING ANGLE BRACKET/" | \ + sed -e "s/^>$/\\\\033[1;31m\>\\\\033[00mCLOSING ANGLE BRACKET/" | \ + sed -e "s/^\#$/\\\\033[1;31m\#\\\\033[00mHASH/" | \ + sed -e "s/^\@$/\\\\033[1;31m\@\\\\033[00mAT-SIGN/" | \ + sed -e "s/^\.$/\\\\033[1;31m\.\\\\033[00mDOT/" | \ + sed -e "s/^\,$/\\\\033[1;31m\,\\\\033[00mCOMMA/" | \ + sed -e "s/^\:$/\\\\033[1;31m\:\\\\033[00mCOLON/" | \ + sed -e "s/^\;$/\\\\033[1;31m\;\\\\033[00mSEMICOLON/" | \ + sed -e "s/^\?$/\\\\033[1;31m\?\\\\033[00mQUESTION MARK/" | \ + sed -e "s/^\!$/\\\\033[1;31m\!\\\\033[00mEXCLAMATION MARK/" | \ + sed -e "s/^\+$/\\\\033[1;31m\+\\\\033[00mPLUS SIGN/" | \ + sed -e "s/^\=$/\\\\033[1;31m\=\\\\033[00mEQUALS/" | \ + sed -e "s/^\ $/\\\\033[1;31m\ \\\\033[00mSPACE/" \ )" | sed -e "s/|/\\\\033[1;31m\|\\\\033[00mPIPE/" ) done