[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] question regarding extraction to different paths (request)
From: |
Sergey Poznyakoff |
Subject: |
Re: [Bug-tar] question regarding extraction to different paths (request) |
Date: |
Thu, 03 Feb 2005 13:07:10 +0200 |
Igor Lautar <address@hidden> wrote:
> I appologize if this is not the correct mailing-list, but it is the only one
> for GNU tar...
It is the right one, don't worry.
> Is it possible to extract file1 into /dir2 and file2 into dir3?
No, it is not.
> Is it possible to extract both files into same directory, but so that dir1
> is not created?
> This would give (if using dir2):
>
> /dir2/file1
> /dir2/file2
Yes, you can do this using -C and --strip-components options:
mkdir dir2
tar -C dir2 --strip=1 -xf archive.tar
You will need at least version 1.14 for that.
Regards,
Sergey
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Bug-tar] question regarding extraction to different paths (request),
Sergey Poznyakoff <=