Operating System - HP-UX
1825795 Members
2284 Online
109687 Solutions
New Discussion

determining uncompressed size before gunzip

 
SOLVED
Go to solution
Bill McNAMARA_1
Honored Contributor

determining uncompressed size before gunzip

Is there a nice and easy command to figure out how much space a gzip will gunzip to.

ie, compression ratio..

Later,
Bill
It works for me (tm)
6 REPLIES 6
Jeff Schussele
Honored Contributor
Solution

Re: determining uncompressed size before gunzip

Hi Bill

gunzip -l should give uncompressed size.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
John Palmer
Honored Contributor

Re: determining uncompressed size before gunzip

Hi Bill,

Try gunzip -l

Regards,
John
Jeff Schussele
Honored Contributor

Re: determining uncompressed size before gunzip

And if you combine it with -v it'll give you compression method, CRC value & date/time stamp of the org uncompressed file.

Cheers,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
S.K. Chan
Honored Contributor

Re: determining uncompressed size before gunzip

# gzip -l

...
`-l'
For each compressed file, list the following fields:
compressed size: size of the compressed file
uncompressed size: size of the uncompressed file
ratio: compression ratio (0.0% if unknown)
uncompressed_name: name of the uncompressed file



Helen French
Honored Contributor

Re: determining uncompressed size before gunzip

Hi Bill:

# gunzip -l list

# man gunzip

HTH,
Shiju
Life is a promise, fulfill it!
Bill McNAMARA_1
Honored Contributor

Re: determining uncompressed size before gunzip

okay then, gunzip -l I take it!

Thanks all,
Bill
It works for me (tm)