title: awk case insensitive and boolean operator
body: <p>I would like to grep lines that contains both patterns in any order and I'm using </p>
  
  <pre><code>awk '/pattern1/ &amp;&amp; /pattern2/' file.txt
  </code></pre>
  
  <p>but if I want to do case insensitive search, adding /i works only if I add it to pattern2.</p>
  
  <pre><code>awk '/pattern1/ &amp;&amp; /pattern2/i' file.txt ...works
  
  awk '/pattern1/i &amp;&amp; /pattern2/i' file.txt ...don't, outputs the whole file
  </code></pre>
  
  <p>anyone know how to solve this?</p>