Syntactic Confectionery Delight | |
PerlMonks |
Re^3: Parse a tar.gz file without unzipping and uncompressing unzipping?by ctilmes (Vicar) |
on Dec 06, 2010 at 14:13 UTC ( [id://875615]=note: print w/replies, xml ) | Need Help?? |
my $pipecmd = "zcat $file | tar -O -xf -"; # -O, extract files to standard output
Your tar may even have support for uncompressing built in, look for the tar option "-Z" for uncompress and "-z" for unzip.
In Section
Seekers of Perl Wisdom
|
|