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
2
votes
1 answer

How to extract KML file from downloaded gzip file using R?

I'm trying to download a zipped file from the web, then extract the single kml file within. I have tried several different utils functions to unzip and extract but am not sure how to get the kml that I can begin to work with (in sf package).…
2
votes
1 answer

zlib gunzip decompresses different buffer sizes each run on the same file

I'm downloading a daily export gzip file from The Movie Database and decompressing it with zlib. When the end event is hit, I log the length of the string of data I decompressed. The length is different every time. It appears that the data isn't…
Johnathon Sullinger
  • 7,097
  • 5
  • 37
  • 102
2
votes
2 answers

R Reading in a zip data file without unzipping it (loss of information)

From one of the answers in this SO question, I got the lines: require(readr) myData <- read_csv("foo.txt.gz") But this makes me lose data for some reason. My second column is a time column in this format: 9:30:00.244271971 And this code transforms…
python_enthusiast
  • 896
  • 2
  • 7
  • 26
2
votes
2 answers

Node.js - Gunzip an already read file async issues

Relatively new to node.js and the async way of doing things, so far I've been able to use promises to read a file using fs readFile, but I haven't had any luck getting zlib Gunzip to work. Writing in Coffeescript: promisifyRun(fs, 'readFile',…
cookersjs
  • 111
  • 12
2
votes
2 answers

Bash script - Parallel unzip and waiting for ending

I need to uncompress some archives and I'd like to speedup the process. Here my piece of script: for archive in $path; do STEM=$(basename "${archive}" .gz) gunzip -c $archive > $here/$STEM done for file in `ls "$here"`; do ...…
Fab
  • 1,145
  • 7
  • 20
  • 40
2
votes
1 answer

How to extract a portion (not beginning) of .gz file?

I have a large gz file (11 GB) that I can't decompress to my computer with even 100GB free. I've extracted the first 50 GB with the command: gzip -cd file.gz | dd ibs=1024 count=50000000 > first_50_GB_file.txt I was able to successfully parse my…
2
votes
1 answer

Output of command as variable

I'm writing a PBS script to process many files at once and perform multiple actions. I would like to start by unzipping .gz files (which I later zip) and then process the unzipped file. The following will unzip the file in $file, but I once I have…
fugu
  • 6,417
  • 5
  • 40
  • 75
2
votes
3 answers

Unzip Zip File Using JAVA ZipFile Class

I am trying to unzip files using JAVA and It is compiling without any errors. When i am calling it from my tool, and giving absolute destination path and source path of file e.g: Source: D:\data\test.zip Destination: D:\data\op\ I am getting Error…
SOAMad
  • 325
  • 5
  • 22
2
votes
0 answers

How can i decompress my json data using gzip format in android?

I want to decompress json data and store into string.I tried more but not working well. I called my jsonparser class to my activity it raised an error when i run my application. Here, is my JSONParse.java public class JSONParse { static String…
Mayur
  • 96
  • 1
  • 10
2
votes
2 answers

gunzip and mysql import - No such file or directory

I have created a bash script for the automation of my database restore. When I run the following commands, I get /my/sql/file/path.sql: No such file or directory. ssh $USER@"$cloneMysqlHost" gunzip /path/file.sql.gz && MySQL -u root -p db_name <…
Samantha
  • 91
  • 9
2
votes
0 answers

Zipped file contains multiple files. How to Read / Process them in Java Buffer in a loop

I have a Big Zipped File which in turn have 100's of small files in it. How can I unzip them (although I am doing it with GZIP already), and read into Java buffer one by one in a loop or some thing. So basically, using GZIP I can unzip a file in…
Noman K
  • 277
  • 1
  • 5
  • 15
2
votes
2 answers

Why is my programmatic compression dropping the file extension?

I am using C# to programatically compress an xml file. Compression works fine, but when I gunzip the file from the command line, the extension has been dropped. Why would this be? The destination file coming in has the gz extension while the…
sidd.darko
  • 79
  • 7
2
votes
3 answers

bash uncompress gz and store in variable

I need to uncompress a .gz file and store it in a variable, so I can use it later. So, the idea is that I generate *.fastq.gz files, and I need to uncompress them and keep just the *.fastq file. Then, I would like to store its name in a variable, so…
user3379797
  • 23
  • 1
  • 3
2
votes
1 answer

capturing a line from a gunzipped file in a join command

I am trying to get a specific attribute from a line that is returned from the join command. My code to gunzip two files (without saving to disk) and then do a join on them is: join <(gunzip -c fileA.gz) <(gunzip -c fileB.gz) -t $'|' The -t $'|' is…
gjw80
  • 1,058
  • 4
  • 18
  • 36
2
votes
4 answers

What is the best way to gunzip files with Perl?

Is there a faster solution than my actual 'zcat' solution to gunzip files with Perl? A little benchmark: #!/usr/bin/perl use strict; use warnings; use Benchmark qw(cmpthese timethese); use IO::Uncompress::Gunzip qw(gunzip); my $re = qr/test/; my…
sebthebert
  • 12,196
  • 2
  • 26
  • 37