awk on a single line for a particular substring and then merge
<p>I have several XML files with the whole content in one line. I want to merge the part between <code>&lt;p1&gt;</code>and <code>&lt;/p1&gt;</code> tags of different files in one file. Is it possible to do so using awk?</p>