<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Before Trevor suggests it, there is *always* a Perl module for it:<br>
    <br>
    Archive::Tar<br>
    <br>
    Which let's you rename the files inside a tarbal:<br>
    <br>
    $tar->rename( $old_file_name, $new_file_name )<br>
    <br>
    see:
<a class="moz-txt-link-freetext" href="http://search.cpan.org/~bingos/Archive-Tar-2.26/lib/Archive/Tar.pm#$tar">http://search.cpan.org/~bingos/Archive-Tar-2.26/lib/Archive/Tar.pm#$tar</a>->list_files(_[\@properties]_)<br>
    <br>
    -Brad<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 10/12/2017 1:10 PM, Kevin McGregor
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:5DE9D212-F7D1-451C-9082-6BCE82BA3522@gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div>Is there a way to untar a tar archive to stdout and use that
        output to recreate the archive by piping it back into tar? GNU
        tar has a transform option to change the file names. <br>
        <br>
        Sent from my iPhone</div>
      <div><br>
        On Oct 12, 2017, at 10:42, Adam Thompson <<a
          href="mailto:athompso@athompso.net" moz-do-not-send="true">athompso@athompso.net</a>>
        wrote:<br>
        <br>
      </div>
      <blockquote type="cite">
        <div>
          <meta http-equiv="Content-Type" content="text/html;
            charset=utf-8">
          <p>On 2017-10-12 08:59, Kevin McGregor wrote:</p>
          <blockquote type="cite" style="padding: 0 0.4em; border-left:
            #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
            <div dir="ltr">Given a gzipped cpio archive (12 GB!) with
              files in it like:
              <div>
                <div> </div>
                <div>wwdsvdccb101/root/data/ccb/ccbx/splapp/servers/myserver/tmp/.appmergegen_1347913274622/SPLWeb.ear/h7y1ba/data/xml/CILICEXP.xml</div>
                <div>wwdsvdccb101/root/data/ccb/ccbx/splapp/servers/myserver/tmp/.appmergegen_1347913274622/SPLWeb.ear/h7y1ba/data/xml/CILTSVTP.xml</div>
                <div>wwdsvdccb101/root/data/ccb/ccbx/splapp/servers/myserver/tmp/.appmergegen_1347913274622/SPLWeb.ear/h7y1ba/data/xml/C1LOOUPP.xml</div>
                <div>wwdsvdccb101/root/data/ccb/ccbx/splapp/servers/myserver/tmp/.appmergegen_1347913274622/SPLWeb.ear/h7y1ba/data/xml/CILTTRAL.xml</div>
                <div>wwdsvdccb101/root/data/ccb/ccbx/splapp/servers/myserver/tmp/.appmergegen_1347913274622/SPLWeb.ear/h7y1ba/data/xml/CILCSSPL.xml</div>
                <div>wwdsvdccb101/root/data/ccb/ccbx/splapp/servers/myserver/tmp/.appmergegen_1347913274622/SPLWeb.ear/h7y1ba/data/xml/CILTCLGP.xml</div>
              </div>
              <div> </div>
              <div>How can I change the first component of the path to
                something else without unpacking the entire archive to
                disk first? Obviously I'll still have to un-gzip and
                de-cpio the whole 12GB while processing; I just don't
                want to put the whole thing on disk while I'm changing
                the path.</div>
              <div> </div>
              <div>Any ideas?</div>
              <div> </div>
            </div>
          </blockquote>
          <div> </div>
          <br>
        </div>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>