help-gnu-utils
[Top][All Lists]
Advanced

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

Re: Gnu Tar: Extracting files into a single directory


From: Dubious Dude
Subject: Re: Gnu Tar: Extracting files into a single directory
Date: Tue, 20 Jun 2006 06:24:10 -0400
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

Sven Mascheck wrote:
> Dubious wrote:
> 
>> tar.gz archive. I want to extract them all into a single directory,
>> regardless of their path in the archive.
> 
> $ zcat archive.tar.gz | pax                 
> ./
> ./dir/
> ./dir/subdir/
> ./dir/subdir/b
> ./dir/subdir/a
> ./dir/a
> 
> $ zcat archive.tar.gz | pax -r  -s ',.*/,,p'
> ./ >> 
> ./dir/ >> 
> ./dir/subdir/ >> 
> ./dir/subdir/b >> b
> ./dir/subdir/a >> a
> ./dir/a >> a
> 
> $ ls
> a       b

Thank you, Sven.  I'll keep that in mind for when
pax is available.  I know from the cygwin mailing
list that this is possible, even through it doesn't
come with cygwin itself.


reply via email to

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