I need to go from a string to an array where each entry is each word on that string. For example, starting with:VotePedro=Vote for PedroI need the array:VoteForPedroWhich I should then be able to iterate over as:for i in ${votePedroArray[@]}    do    ## Do something    done
Go from a String to an Array of words in Bash
bash;shell script;string;array
VotePedro=Vote for PedrovotePedroArray=(${VotePedro})