Quoting mak <[EMAIL PROTECTED]>:

> On 06/12/2008, Neelesh Raje <[EMAIL PROTECTED]> wrote:
>>
>> Dear all,
>>
>> 1How to extract only one folder and file from tar.gz and tar.bz2 file.
>
>
>
> First of all this is kind of two tier compression. Whatever files do you
> have, those were first archived as dot tar, then it was agin zipped with
> gzip or bzip2
>

it is quite amazing to see how the man pages can be ignored, and how a  
question can be answered without even understanding the question or  
the objective.

Yes, it is a two tier archive, but they can be un-archived in one go.

if it is tar.gz, use tar -zxvf <filename>
if it is tar.bz2, use tar -jxvf <filename>

but that was not your question, was it?

you might find your answer if you look at the -T or --files-from  
option. Now, who needs a bit of spoon feeding to find out the tar man  
page?

happy linuxing

Reply via email to