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.