I am trying to convert a string separated with whitespace into an array and loop that array to pass each value as a param to a bash command. I am getting bad substitution message when i execute the scripts.
text = xdc cde erd ded ded kie dei sess;
OIFS=$IFS;
IFS=" ";
ids=$($text);
for (i=0; i<$...