title: Use data from a CSV file as values of a variable in a loop in Bash
body: <p>I have the need to create a loop that collects data from a CSV file and use them as variables in an HTTP POST and I do not know how to do it, could any one help me with this problem?</p>
  
  <p>The structure of the CSV:</p>
  
  <pre><code>name_active1, ip1, type1
  name_active2, ip2, type2
  name_active3, ip3, type3
  ...
  </code></pre>
  
  <p>And the variables would be </p>
  
  <pre><code>  $ NAME = name_active1
    $ IP = ip1
    $ TYPE = type1
  </code></pre>
  
  <p>And so on.</p>