title: Check field length using awk
body: <p>I have a file of 3 fields:</p>
  
  <pre><code>123710337783,351898014413150,123028040249634
  123710337785,352934028758390,123028040109275
  </code></pre>
  
  <p>I need to check that the fields meet the following lengths:</p>
  
  <pre><code>Field 1 = 12
  Field 2 = 15 or 16
  Field 3 = 15
  </code></pre>
  
  <p>I get an error when running this:</p>
  
  <pre><code>awk -F, '{if(length($2) == 15 ) || length($2) == 16) &amp;&amp; length($1) == 12 &amp;&amp; length($3)) == 15) print  }'
  </code></pre>
  
  <p>Please assist.</p>
  
  <p>Bernie</p>