I have a variable which contains a space-delimited string,
line="1 1.50 string"
I want to split that string with space as a delimiter and store the result in an array, so that the following:
Somewhere I found a solution which doesn't work:
If I run the echo statements above after this, I get:
1 1.50 string
I also tried
with the same result. Can someone help, please?