bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] problem with multiple -C options on extraction


From: Sergey Poznyakoff
Subject: Re: [Bug-tar] problem with multiple -C options on extraction
Date: Sun, 01 Jul 2007 23:42:18 +0300

Keh-Cheng Chu <address@hidden> ha escrit:

> % 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?

Yes, for this particular example, do:

 tar -xf junk.tar --transform 's,^[ab]/,/tmp/\U&\E,' --absolute

(See http://www.gnu.org/software/tar/manual/html_node/transform.html
for the description of `--transform' option).

In general, however, it might be trickier.

Regards,
Sergey




reply via email to

[Prev in Thread] Current Thread [Next in Thread]