title: Shell script read multiple inputs from user
body: <p>How to read any number of inputs from user at once and store it into an array.
  For example this will read only a single input at a time</p>
  
  <pre><code>  read -p "Please enter username: " username
    echo "Dear $username,"
  </code></pre>
  
  <p>I want something like:</p>
  
  <pre><code>read -p "Please enter location names separated by space: "
  </code></pre>
  
  <p>How would i store location names into an array and then loop through it.</p>