Questions tagged [gunzip]

The gzip program compresses and decompresses files using Lempel-Ziv coding (LZ77).

gunzip (GNU unzip) is the data decompression tool associated with the compression tool gzip (GNU zip). It can decompress files created by gzip, compress or pack.

202 questions
1
vote
1 answer

Uncompress gzip from byte array in golang

I have a bunch of files that come from some web requests, and some are gziped, i need to unpack them and print them as a string. This is the first time I try using golang, I tried some examples I found online but can't get it working. Here's the…
Mark
  • 577
  • 1
  • 7
  • 29
1
vote
1 answer

Handling Streaming TarArchiveEntry to S3 Bucket from a .tar.gz file

I am use aws Lamda to decompress and traverse tar.gz files then uploading them back to s3 deflated retaining the original directory structure. I am running into an issue streaming a TarArchiveEntry to a S3 bucket via a PutObjectRequest. While first…
rsmets
  • 789
  • 1
  • 13
  • 23
1
vote
1 answer

Gzip Files: Extracting Does Not Work as Expected

I'm facing this very strange problem when working with gzip files. I'm trying to download this file https://www.sec.gov/Archives/edgar/daily-index/2014/QTR2/master.20140402.idx.gz When I view the contents of the file inside the archive, it is…
user5352796
1
vote
1 answer

Disruption during Gzip - Would it damage the file content?

Please assume, we execute gzip or gunzip on a relatively large text file (>1GB) or files as such within a directory. During the process, either mistakenly or intentionally the process is killed. Is there any risk that the original content of the…
Herpes Free Engineer
  • 2,425
  • 2
  • 27
  • 34
1
vote
1 answer

Python gzip module doesn't work as expected on ubyte file

I expected the following code import gzip import numpy as np def read_ubyte(self, fname): with gzip.open(fname, 'rb') as flbl: magic, num = struct.unpack(">II", flbl.read(8)) lbl = np.fromfile(flbl, dtype=np.int8) return…
LucG
  • 1,238
  • 13
  • 25
1
vote
2 answers

grep several strings from gz file

What is the best way to extract lines from a very large gz file that match multiple strings in a second file? I've tried, which works for that string and surrounding: gunzip -c /myfolder/large_file.gz | grep -B 50 "33754548" >…
user3403622
  • 15
  • 1
  • 6
1
vote
1 answer

How to fix gunzip error "has flags 0xd4 -- not supported"

prompt: ~/$ gzip -d myfile.csv.gz gzip: myfile.csv.gz has flags 0xd4 -- not supported Tried googling to no avail, so thought I'd ask directly here. The files in question were copied using aws s3 cp command. What does this error mean and how can I…
Thom Rogers
  • 1,385
  • 2
  • 20
  • 33
1
vote
2 answers

Uncompressing Gzip buffer in JavaScript

I've got a data buffer compressed by the php function gzcompress and I need to uncompress it in js (nodejs). gzcompress(serialize($slot[$i]['advanced_details']),8) I've tried Class: zlib.Gunzip from…
Jesús Fuentes
  • 919
  • 2
  • 11
  • 33
1
vote
1 answer

Gunzip .gz file in perl

I am working on Perl. and I need to download a .gz file from website, then gunzip or decompress it in Perl. My code: use LWP::Simple; use XML::Simple qw(:strict); use Data::Dumper; use DBI; use Getopt::Long; use IO::Uncompress::Gunzip…
ccy
  • 341
  • 6
  • 18
1
vote
1 answer

Script to download, gunzip merge files and gzip the fil again?

My script skills are really limited so I wonder if someone here could help me. I would like to download 2 files, run gunzip, run a command called tv_merge and then gzip the new file. Here's what I Would like to be run from a script. I would like to…
LewHam
  • 11
  • 1
1
vote
1 answer

perl gunzip to buffer and gunzip to file have different byte orders

I'm using Perl v5.22.1, Storable 2.53_01, and IO::Uncompress::Gunzip 2.068. I want to use Perl to gunzip a Storable file in memory, without using an intermediate file. I have a variable $zip_file = '/some/storable.gz' that points to this zipped…
Migwell
  • 18,631
  • 21
  • 91
  • 160
1
vote
1 answer

Loop in bash script

I have a directory containing gzipped datafiles. I want to run each file using the script est_abundance.py. But first i need to unzip them. So i have this bash: for file in /home/doy.user/scratch1/Secoutput/; do cd "$file" gunzip *kren.gz …
Dale Pin
  • 61
  • 1
  • 9
1
vote
1 answer

nginx modifying the content in compressed response

In our project we have a problem where we have to edit the response content that is served through ngnix. For the uncompressed responses we are able to do it through sub_filter module of ngnix, but for the compressed response we have to uncompress…
vamsi
  • 1,219
  • 1
  • 9
  • 15
1
vote
1 answer

NullPointerException using on-the-fly version of Ant task

The docs for the task say it has an on-the-fly version. In my case this causes a NullPointerException: >ant download Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0 Buildfile:…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
1
vote
4 answers

uzing libgz to inflate a gz input

I'm currently trying to use the zlib to inflate a source of gzipped data. It seems that the inflate API in zlib cannot inflate a gzipped data ( The example http://www.zlib.net/zpipe.c fails to read a gzipped file: "zpipe: invalid or incomplete…
Pierre
  • 34,472
  • 31
  • 113
  • 192