title: Is there any reason why my AWK functions work only on a shortened version of my file
body: <p>I have a simple AWK function:</p>
  <pre><code>awk '
      BEGIN { FS=&quot; &quot;; RS=&quot;\n\n&quot; ; OFS=&quot;\n&quot;; ORS=&quot;\n&quot; }
      /ms Response/ { print $0 }
      ' $FILE
  </code></pre>
  <p>The FILE is a large log that holds sections like this:</p>
  <pre><code>2021-10-13 12:15:12 CDT 526ms Request 
  POST / HTTP/1.1 
  Content-Type: application/x-www-form-urlencoded 
  Host: xxxxxxxxxxxxxxxxxxx 
  Content-Length: 279 
  
  &lt;query xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;product&gt;&lt;name&gt;drill&lt;/name&gt;&lt;price&gt;99&lt;/price&gt;&lt;stock&gt;5&lt;/stock&gt;&lt;/product&gt;/query&gt; 
  2021-10-13 12:15:12 CDT 880ms Received
  
  2021-10-13 12:15:12 CDT 896ms Response 
  HTTP/1.1 200 OK 
  Content-Type: application/xml 
  Content-Length: 472
  
   &lt;?xml version=&quot;1.0&quot;?&gt; 
  &lt;query type=&quot;c&quot; xmlns=&quot;xxxxxxxxxxxxxx&quot;&gt;  
  &lt;product&gt;
  &lt;name&gt;screwdriver&lt;/name&gt;
  &lt;price&gt;5&lt;/price&gt;
  &lt;stock&gt;51&lt;/stock&gt;
  &lt;/product&gt;
  &lt;/query&gt;
  
  2021-10-13 12:15:12 CDT 947ms Request 
  POST / HTTP/1.1 
  Content-Type: application/x-www-form-urlencoded 
  Host: xxxxxxxxxxxxxxx
  Content-Length: 515 
  Expect: 100-continue
  </code></pre>
  <p>The above is just a snippet, the file continues for over 14000 lines, repeating the same pattern.</p>
  <p>Now when I run my AWK function on the whole file, it just returns the whole file back. But when I run it on a file that was created with (cat $FILE | head -200), It works as expected by returning:</p>
  <pre><code>2021-10-13 12:15:12 CDT 896ms Response
  HTTP/1.1 200 OK
  Content-Type: application/xml
  Content-Length: 472
  
  2021-10-13 12:15:13 CDT 075ms Response
  HTTP/1.1 200 OK
  Content-Type: application/xml
  Content-Length: 3207
  
  2021-10-13 12:15:13 CDT 208ms Response
  HTTP/1.1 200 OK
  Content-Type: application/xml
  Content-Length: 4220
  </code></pre>
  <p>Why can I run this on a shortened file but when I run it on a longer version, it does not work? Even though its the same data in the file?</p>
  <p>I am working on Ubuntu 18.04 LTS in Bash.</p>
  <p>Thank you!</p>