title: Add text to beginning and end of a gziped file
body: <p>Using shell scripting : How to add a text in the start and end of an gzipped file with out un-gzipping</p>
  
  <p>My gzipped looks something like below:</p>
  
  <pre><code>&lt;record&gt;ABC&lt;/record&gt;
  &lt;data&gt;DFC&lt;/data&gt;
  </code></pre>
  
  <p>After adding header and footer it should look like </p>
  
  <pre><code>&lt;xtr&gt;
  &lt;record&gt;ABC&lt;/record&gt;
  &lt;data&gt;DFC&lt;/data&gt;
  &lt;/xtr&gt;
  </code></pre>
  
  <p>Thanks in advance.</p>