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

Linux shell script command - gzip

I am having one shell script in Linux in which the output will be generated in .csv format. At the end of the script i am making this .csv to .gz format to reduce the space on my machine. The file which is generated comes in this format…
user2338525
  • 23
  • 1
  • 5
1
vote
1 answer

unzip command ends successfully without unzipping file

There are double compressed files with extension xxx.zip.gz On gunzip - xxx.zip file is created of size 0.25 GB On unzip after gunzip - xxx.zip file extension does not change Output of unzip : Archive: xxx.zip inflating: xxx.txt also echo $?…
fortm
  • 4,066
  • 5
  • 49
  • 79
1
vote
1 answer

Optimizing Ungunzipping process in Java?

I have a problem with the time it requires for .gz files to get uncompressed using the following code: import java.io.*; import java.util.zip.*; public class UnGunzipClass{ public static boolean ungunzip(String compressedFile, String…
1
vote
2 answers

How to parse compressed sitemap using python without downloading it to disk?

I want to parse compressed sitemap like www.example.com/sitemap.xml.gz and collect all the urls in sitemap without downloading sitemap.xml.gz. there are ways to parse it after downloading sitemap.xml.gz and de-compressing it with help of lxml or…
Alok
  • 7,734
  • 8
  • 55
  • 100
1
vote
1 answer

Convert file format from .bz2 to gz on Mac

I have lots of bunzip2 compressed files that I would like to convert to .gz. I tried the following using a pipe, but it does not work. I guess the reason is gzip does not know what files to zip. bunzip2 test.txt.bz2 | gzip any way to use a pipe for…
TonyW
  • 18,375
  • 42
  • 110
  • 183
1
vote
1 answer

Pipe to another command bash

I cannot seem to get my bash script to work, i want to pipe the output from the gunzip command to another command but it is not working, can anyone help me? The gunzip command outputs a tar file that i want to then use the tar command to put back yo…
1
vote
1 answer

Unzipping a zipped folder in nodejs

I zipped a folder in nodejs with code : fstream = require('fstream'), tar = require('tar'), zlib = require('zlib'); fstream.Reader(toZipDetails) /* Read the source directory */ .pipe(tar.Pack()) /* Convert the directory to a .tar file */ …
Ashish Negi
  • 5,193
  • 8
  • 51
  • 95
1
vote
2 answers

piping the output of gunzip ( of two files ) separately

I have two compressed files. ( file1.gz and file2.gz ). I would like to unzip them and send the output to another command as separate inputs. something like: gunzip -c file1.gz file2.gz | command -1 file1 -2 file2 How could I achieve this?
gthm
  • 1,878
  • 4
  • 26
  • 37
1
vote
1 answer

ProcessBuilder with gunzip does not work

I am trying to run this code which fails with the note: gzip: /home/idob/workspace/DimesScheduler/*.gz: No such file or directory The code: ProcessBuilder gunzipPB = new ProcessBuilder("gunzip", System.getProperty("user.dir") + File.separator +…
Ido
  • 573
  • 4
  • 11
1
vote
1 answer

gunzip with mkfifo in bash

I am trying to gunzip a file and then keep the results in a named pipe created using mkfifo which will ultimately be used in a join command. I have seen many examples on using mkfifo to gzip things but almost nothing on gunzipping in this type of…
gjw80
  • 1,058
  • 4
  • 18
  • 36
1
vote
1 answer

Decompress Gzip JSON response

I'm getting GZIP type compressed response from web-service. Can anyone please help me how to decompress or decode the response. Any help regarding this will be really helpful Thanks
user87267867
  • 1,409
  • 3
  • 18
  • 25
1
vote
5 answers

How can I compare file list from a tar archive and directory?

I am still learning Perl. Can anyone please suggest me the Perl code to compare files from .tar.gz and a directory path. Let's say I have tar.gz backup of following directory path which I have taken few days…
Space
  • 7,049
  • 6
  • 49
  • 68
0
votes
3 answers

Downloading a gunzipped file over FTP

I am attempting to download a gunzipped file from an FTP server. It appears to download successfully (correct file size, etc) but when I extract the contents, it fails stating that the data-format is violated. If I manually download the same file…
Houdmont
  • 1,293
  • 1
  • 12
  • 20
0
votes
1 answer

Unable to upload Gunzip stream from GDrive to azure

Package Name: "@azure/storage-blob" Package Version: "12.9.0" I am using node js and trying to upload png file from gdrive to azure. In order to achieve it. I am first reading file as stream from GDrive API. when I perform read file, I get Gunzip…
FaisalAhmed
  • 3,469
  • 7
  • 46
  • 76
0
votes
1 answer

How to perform multiple sequential operations in Node.js?

How can I build an ETL pipeline script to un-gunzip, extract, transform, save and gunzip files? I am able to get up to un-gunzip, but I am unable to extract, transform, save, and gunzip. I was attempting to follow this tutorial to get me started:…
imparante
  • 503
  • 9
  • 21