Keh-Cheng Chu <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin [EMAIL PROTECTED] (uni) [EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
