Question about compress and uncompress

  • Follow


Hi All,
Is there any to check the uncompressed size of a compressed file
without actually uncompressing it? I have compressed file of 625 MB.
My /home slice is at 90%. I tried to uncompress it. My /home slice
maxed to 100%. I am trying to find out what would be the actual size
if I uncompress it. I tried zcat. Since the file is a binary file, it
does not help. Your help will be greatly appreciated. TIA
0
Reply wchy65 5/5/2004 11:29:10 PM

Wade Chy <wchy65@yahoo.com> wrote:
> Hi All,
> Is there any to check the uncompressed size of a compressed file
> without actually uncompressing it? I have compressed file of 625 MB.
> My /home slice is at 90%. I tried to uncompress it. My /home slice
> maxed to 100%. I am trying to find out what would be the actual size
> if I uncompress it. I tried zcat. Since the file is a binary file, it
> does not help. Your help will be greatly appreciated. TIA

Well, the format could store the compression ratio in the file itself.
Zip may do that.

However it sounds like you just don't have the space on disk.  You don't
have to uncompress it to disk.

Try 'zcat <file> | wc' and see how many characters it has.  That's the
uncompressed size.  Once you get enough space on the drive, you can
store the uncompressed file.

Why do you say, "since the file is a binary file, it does not help"?  I
don't see how zcat would care whether the file were binary or not.

-- 
Darren Dunham                                           ddunham@taos.com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >
0
Reply Darren 5/5/2004 11:48:14 PM


In article <23fmc.60658$u32.47274@newssvr25.news.prodigy.com>,
 Darren Dunham <ddunham@redwood.taos.com> wrote:

> Wade Chy <wchy65@yahoo.com> wrote:
> > Hi All,
> > Is there any to check the uncompressed size of a compressed file
> > without actually uncompressing it? I have compressed file of 625 MB.
> > My /home slice is at 90%. I tried to uncompress it. My /home slice
> > maxed to 100%. I am trying to find out what would be the actual size
> > if I uncompress it. I tried zcat. Since the file is a binary file, it
> > does not help. Your help will be greatly appreciated. TIA
> 
> Well, the format could store the compression ratio in the file itself.
> Zip may do that.

gzip does, and its -l option displays this.  But apparently compress 
doesn't.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
0
Reply Barry 5/6/2004 12:36:19 AM

2 Replies
268 Views

(page loaded in 0.064 seconds)


Reply: