I want to extract some data from input string (e.g. name1,name2,name3...), and then use all of them as a variables (e.g. var1=name1, var2=name2, varN=nameN). The number of 'names' can be different. I want to apply a set of commands for these variables in a FOR loop later in the script.
You can use a "for each" loop like so:
Aside from a comma