title: AWK : Extract value between 2 html tag's' from an output which has html all in one line
body: <p>I have an html output which is all in one line; i have tried to extract serial numbers using awk but for some odd reason I am only getting one output. The output from curl comes out as an xml format.</p>
  
  <pre><code>curl -sSku user:somepass https://somewebsite.com/computergroups/id/4
  -X GET | awk 'BEGIN{IGNORECASE=1;FS="&lt;serial_number&gt;|&lt;/serial_number&gt;";RS=EOF} {print $2}'
  </code></pre>
  
  <p>the above command only prints the first occurance and ends there. It should print over several hundred.</p>