bug-gzip
[Top][All Lists]
Advanced

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

Re: Decompress partially a gzipped file until a certain length?


From: Paul Eggert
Subject: Re: Decompress partially a gzipped file until a certain length?
Date: Wed, 19 May 2010 10:54:12 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4

On 05/19/10 01:42, nitnerolf wrote:

> I have not found any option nor possibility to
> stop the decompression after a given decompressed length has been reached.
> Therefore I would like to know if it is possible to decompress a file until
> a certain length with gzip or zcat

You can use "gzip -cd file.gz | dd ibs=1024 count=10" to uncompress just the
first 10 KiB, for example.  Or if you want to delve into C you can use zlib.



reply via email to

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