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