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
read -p "Please enter username: " username
echo "Dear $username,"
I want something like:
read -p "Please enter location names separated by space: "
How would i store location names into an array and then loop through it.