[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] problem with multiple -C options on extraction
From: |
Joerg Schilling |
Subject: |
Re: [Bug-tar] problem with multiple -C options on extraction |
Date: |
Tue, 03 Jul 2007 16:43:20 +0200 |
User-agent: |
nail 11.22 3/20/05 |
Keh-Cheng Chu <address@hidden> wrote:
> % tar tf junk.tar
> a/
> a/aa
> b/
> b/bb
>
> is there a way to extract the a tree and the b tree into
> different directories?
>
> I tried the command
>
> % tar xvf junk.tar -C /tmp/A a -C /tmp/B b
> a/
> a/aa
> b/
> tar: a: Cannot utime: No such file or directory
> b/bb
> tar: Error exit delayed from previous errors
>
> which did extract all the files to where I want them to be
> (/tmp/A/a/aa and /tmp/B/b/bb), but the second chdir (to /tmp/B)
> seems to have happened a little too early.
This kind of usage is possible with star.
Star remembers a -C option for every extract pattern.
This feature has been introduced 10 years ago.
ftp://ftp.berlios.de/pub/star/alpha/
Jörg
--
EMail:address@hidden (home) Jörg Schilling D-13353 Berlin
address@hidden (uni)
address@hidden (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily