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: nitnerolf
Subject: Re: Decompress partially a gzipped file until a certain length?
Date: Fri, 21 May 2010 02:06:57 -0700 (PDT)



Paul Eggert wrote:
> 
> 
> 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.
> 
> 

Thanks ! This works out.
In the meantime I have thought about it and came up with using "zcat | fold
-w80 | head -n1000".
The fold command breaks the header into lines, as it is written in only one
line, and the head command limits the final number of lines to read.

-- 
View this message in context: 
http://old.nabble.com/Decompress-partially-a-gzipped-file-until-a-certain-length--tp28605514p28631335.html
Sent from the Gnu - Gzip mailing list archive at Nabble.com.




reply via email to

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