title: AWK: Assign a variable to each field
body: <p>I need to assign a variable to each field, to later generate HTML.
  My data file looks like this:</p>
  
  <pre><code>field1;field2;field3                # &lt;&lt; RECORD 1
  this;is;second;record               # &lt;&lt; RECORD 2
  </code></pre>
  
  <p>Is there a way to generate an array for each record, based on the record number? Like arrayNR, so:</p>
  
  <pre><code>array1[0] = "field1"; array1[1] = "field2"; 
       ^ record number
  array2[0] = "this"; array2[1] = "is"; array2[2] = "second"; array2[3] = "record"
       ^ record number
  </code></pre>