I have a file with loads of from / to date strings taken from output of certificates files in the following format:
Jan 9 2015 Mar 2 2017
What would be the best way to split the string and store it in an array?
fromDate=Jan 9 2015
toDate=Mar 2 2017
Which I then want to apply the date command to
date $fromDate +%Y-%m-%d && date $toDate +%Y-%m-%d
Would I use 3rd whitespace as a separator or is there a better way to do it?