Read

To capture input from the user, the read command is used to assign the characters entered on the command line to a variable:

 

Multiple values may also be read:

 

Use the -a option to instruct read to store the words in to an indexed array.