title: Passing values from comma seperated string and assigning to different variables in korn shell
body: <p>I'm exporting the result from a SQL query as comma separated string to a variable. How to assign each value from the string to a variable name and export.</p>
  
  <pre><code>$SQLOUTPUT_STRING=1,2018-05-16,abc,123
  </code></pre>
  
  <p>I want to assign the values from above string to variables and export them</p>
  
  <pre><code>export VAR1=1
  export VAR2=2018-05-16
  export VAR3=abc
  export VAR4=123
  </code></pre>
  
  <p>I'm using these variables in other scripts so I cannot names these generic as above, so VAR1,VAR2,VAR3,VAR4 wont be the case, it would be different names.</p>
  
  <p>Thanks in advance.</p>