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
4
votes
2 answers

FIFO file in TCL

I need to unzip file in a named pipe return it: proc unzip_file_if_needed { fileName } { if { [file extension $fileName] != ".gz" } { return $fileName; } set tmpDir [fileutil::tempdir] set tmpFileName [ file join $tmpDir […
4
votes
2 answers

How to copy and extract .gz files using python

I am just starting to learn python and have a question. How to create a script to do following: ( will write how i do it in bash) Copy .gz from remote server1 to local storage. cp /dumps/server1/file1.gz /local/ Then extract that file…
bflance
  • 63
  • 1
  • 1
  • 5
4
votes
3 answers

What is the fastest way to unzip textfiles in Matlab during a function?

I would like to scan text of textfiles in Matlab with the textscan function. Before I can open the textfile with fid = fopen('C:\path'), I need to unzip the files first. The files have the extension: *.gz There are thousands of files which I need to…
user276837
3
votes
1 answer

Unexpected end of ZLIB input stream in java

public class GzExtractor implements Extractor { Logger logger = LoggerFactory.getLogger(GzExtractor.class); private static final int BUFFER_SIZE = 1024; byte[] buff = new byte[BUFFER_SIZE]; private File file; private String…
3
votes
0 answers

Can Nginx decompress gzip file in response?

Question: Can Nginx decompress gzip file in response? What exactly? Request curl 127.0.0.1/file.json.gz should return decompressed json in response. More details: File exists /path/file.json.gz. Nginx config: server { location / { …
Sergii Brytiuk
  • 345
  • 1
  • 12
3
votes
1 answer

Piping GUNZIP to GREP

I'm trying to find all ZIP files in a specific folder, extract them using GUNZIP, and pipe the output to GREP to search within HTML files contained in these ZIP files. I managed to do so with UNZIP (unzip -p), but unfortunately due to many servers…
Tds18
  • 55
  • 7
3
votes
1 answer

Get tarball from .tar.gz archive in gradle

I have some .tar.gz-Archives and would like to only unpack the Tarball to create a sha256-checksum hash of the .tar-File. (The reason for this is that the archive will be un- and repacked later on, as we are generating patch-files.) Now this seems…
adrianus
  • 3,141
  • 1
  • 22
  • 41
3
votes
2 answers

cURL c++ and gunzip

I am working on a program that reads the headers from a curl perform and searches for a particular header and if found, gunzip the content part and search for another string in the content. i need to implement the last part. rest is done. is there a…
Prasanth Madhavan
  • 12,657
  • 15
  • 62
  • 94
3
votes
1 answer

Is there a way to convert a vcf.gz file directly into a vcf.bgz file?

I don't want to unzip the vcf.gz file first because it's a big file and my laptop doesn't have space for it. I tried doing: gunzip -c file.vcf.gz > bgzip -c > file.vcf.bgz But it didn't work. Thoughts?
claudiadast
  • 419
  • 1
  • 9
  • 18
3
votes
3 answers

Difference in .tar.gz and first gz and then tar

I made two compressed copy of my folder, first by using the command tar czf dir.tar.gz dir This gives me an archive of size ~16kb. Then I tried another method, first i gunzipped all files inside the dir and then used gzip ./dir/* tar cf dir.tar…
user2897690
2
votes
1 answer

How to download/gunzip a file and obtain an InputStream of the actual file?

I have a url of a gzipped file. I would like to obtain an InputStream of the actual file in Java. What is the best way to achieve this?
smp7d
  • 4,947
  • 2
  • 26
  • 48
2
votes
1 answer

How to read parquet file compressed by .gz in databricks?

My file is stored on an Azure's blob storage and it looks like 1627937153-1627937153-ab_test-20210604-0-0.parquet.gz. How can I read the data from this file in databricks using Python without downloading this file into databricks environment? I have…
2
votes
0 answers

gunzip aiohttp response on the fly

How can I async the following code, without first downloading the entire file: import gzip import urllib.request def gunzip_url(url: str): with gzip.open(urllib.request.urlopen(url), 'rt') as f: return f.read() The following works, but…
Sparkler
  • 2,581
  • 1
  • 22
  • 41
2
votes
0 answers

Ansible unarchive module fails with Unexpected error when accessing exploded file: [Errno 2] No such file or directory:

My zip file contains a folder UAT-04022021_01 which has several files. ls output on my local ansible server zip achieve file and its contents below: -rwxrwxr-x 1 user1 user1 171910544 Feb 4 07:02…
Ashar
  • 2,942
  • 10
  • 58
  • 122
2
votes
1 answer

How to merge multiple large .gz files into one in a efficient way?

I'm trying to combine multiple (29) compressed files (.gz), one after the other, into one file. The compressed files are around 500MB and in their uncompressed format ~30GB. All the files start with a header that I don't want in the final file. I…
Marta_ma
  • 95
  • 1
  • 9
1 2
3
13 14