Bash Script Leet Text Convertor: How to get array to recognize spaces -
the issue code below can not seem array recognize when text has spaces in or not. figured adding ' ' value in array handle this, wrong. haven't found luck searches how array recognize spaces in bash scripting. #!/bin/bash if [ "$1" == "-e" ]; # if cli argument -e opt="encrypt"; # set option encrypt elif [ "$1" == "-d" ]; # if cli argument -d opt="decrypt"; # set option decrypt else # else show proper usage echo "usage - encrypt text: ./l33t.sh -e text"; echo "usage - decrypt text: ./l33t.sh -d text"; exit; fi #creating array leet text , plain text declare -a leet=('ɐ' 'ß' '©' 'Ð' '€' 'ƒ' '&' '#' 'i' '¿' 'x' '£' 'm' '?' 'ø' 'p' 'o' 'Я' '§' '†' 'µ' '^' 'w' '×' '¥' 'z...