I am new to bash, but I am having trouble trying to split a string stored in array and then store those split values into separate variables. For example, I have a string such as
dan 2014-05-06
which is the first element in the array, and I want to split that string into 2 separate variables
name=dan
date=2014-05-06
Is there a simple way to do this?