Actually that's not what the original monk wants to do. Brother blyman wants to extract files inside a tar archive to a different location than the one they use inside the archive.

Correct - I wasn't able to explain it so succinctly, though, and didn't provide any examples of what I meant. Thanks for reading my code (and mind!) to figure out what problem I was trying to solve :)

Besides the problem already pointed out by Brother blyman, I think there's a second one: permissions (and ownership) for directories (and files) are not preserved.

Yep, I did some monkeying around and realized that my program wasn't getting that info, so couldn't possibly do anything with it.

I believe that the original problem can be solved with a one-pass program because the intent is to extract all files to a different root directory; a future enhancement would be to extract only selected files to some arbitrary directory.

I ++'ed you for a great reply; it's gotten me thinking in new directions, so thanks.

blyman
setenv EXINIT 'set noai ts=2'


In reply to Re: Re: Re: tar_mv: move tar data as it's being extracted by belden
in thread tar_mv: move tar data as it's being extracted by belden

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.