How can I take input from read, split the words up by spaces, and then put those words into an array?
What I want is:
$ read sentence
this is a sentence
$ echo $sentence[1]
this
$ echo $sentence[2]
is
(and so on...)
I'm using this to process englishEnglish sentences for a text adventure.