Keh-Cheng Chu <[EMAIL PROTECTED]> 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
