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

Gunzip multiple files in folder and continue on error

I am unzipping multiple files in a folder like this: gunzip -f -k *.gz Some of the .gz files are broken which cause the command to abort. What is a nice way of unzipping all files while ignoring the broken ones?
Jabb
  • 3,414
  • 8
  • 35
  • 58
0
votes
1 answer

EDIT: how to use gzip instead of tar

Edit- I want to use gzip, or gunzip since I am only zipping one file instead of tar. When I try to use gunzip it gives the following error: gzip: /users/tnea01/logfile10.tar.gz: No such file or directory gzip: /users/tnea01/logfile10.log: unknown…
connollyc4
  • 155
  • 1
  • 3
  • 15
0
votes
1 answer

How to stream a gzip built on the fly in Python?

I'd like to stream a big log file over the network using asyncio. I retrieve the data from the database, format it, compress it using python's zlib and stream it over the network. Here is basically the code I use: @asyncio.coroutine def…
amirouche
  • 7,682
  • 6
  • 40
  • 94
0
votes
1 answer

gunzip on windows with gzip

I am trying to use a "gunzip" command on windows as part of a build process that is rigid and cannot change. Basically in order to compile the FIPS canister for OpenSSL, you have to follow a few commands, and you cannot deviate from them. This…
Leaski
  • 21
  • 1
  • 4
0
votes
1 answer

untar a file.tar.gz and directly creat a gz file (file_1.gz and file_2.gz) from the untar files with one command

I have a tar file that contains two files. file.tar.gz The file includes: file_1.fastq file_2.fastq I want to untar the original file and directly gzip the untar files with one command and have the following files: file_1.fastq.gz file_2.fastq.gz Is…
Ehsan
  • 11
  • 1
0
votes
1 answer

About: extracting *.gz files and move a original file to other folder

I am almost new on shell script but don't know some commands. I am trying to write below shell script , please give some direction. 1. Read *.gz files from specific directory 2. Extract it to other folder 3. Move a original file to…
user347918
  • 161
  • 1
  • 2
  • 11
0
votes
1 answer

UNIX gunzip command

gunzip will unzip the gz file and displays the result Is there any option to get list of files/file name that were compressed to .gz file eg:sample.gz contains 2 files file1.txt abc file2.txt def gunzip -c sample.gz o/p:abc def But I need file…
0
votes
1 answer

Redirect gunzip output to python script

I want to gunzip a series of files and then redirect the output to my python script. The python script gets one argument as the input. I wrote the following command: for i in $(ls test5/*/*gz); do gunzip -c $i | python script.py ; done But it gives…
Homap
  • 2,142
  • 5
  • 24
  • 34
0
votes
3 answers

Unzip files in subdirectories bash

I have a directory called test1 which contains multiple directories. In each directory test1/*/, there is a *.gz file that I want to unzip. I tried writing this code but it doesn't work, any help would be appreciated. for folder in test1/*/; do find…
Homap
  • 2,142
  • 5
  • 24
  • 34
0
votes
1 answer

verify gunzip decompression

I am working with large datasets that I have concatenated using: cat file1.fasta.gz file2.fasta.gz > newfile.fasta.gz Then I unzip newfile using: gunzip newfile.fasta.gz, to work with it in some bioinformatics software. The gunzip takes forever and…
Lucas
  • 23
  • 6
0
votes
1 answer

ungzip data receiving from server

An API call giving me data as response and this data is gzipped string. How I can ungzip this data and get the original string back as NSString in my iOS App.
Suryakant Sharma
  • 3,852
  • 1
  • 25
  • 47
0
votes
1 answer

node.js how to stream 22GB gzipped file uncompress on the fly

I need to iterate over the lines in a 22GB gzipped file. Expanded, the file is 250GB.(It's the Google Freebase db dump) I'm not too savvy with streams. Is there a way to stream the file and gunzip it as I go? Here is going the other way: var r =…
metalaureate
  • 7,572
  • 9
  • 54
  • 93
0
votes
2 answers

Restore data from sql.gz file, but skip a single table

I took a backup of my database from engine yard, which is downloaded in sql.gz File. Since one of the tables of my database is too large, so I want to skip it while restoring it in my local system. I use gunzip < file_name.sql.gz | mysql -u…
Amit Kumar
  • 53
  • 1
  • 8
0
votes
1 answer

How to import latest database backup file to backup server

I want to import the backup database file in *.sql.gz to my backup server. I try to use the follow command but there is an error with it ls -Art *.sql.gz | tail -n 1 | gunzip -c | mysql --user=user --password=password database gzip: stdin: not in…
Yuan Chen
  • 1,117
  • 1
  • 11
  • 18
0
votes
2 answers

Permission denied when gunzip a file in Java

Given the following codes I use to gunzip a '.gz' file: public class TestCSVDataToMap { private static final String INPUT_GZIP_FILE = "/opt/old.csv.gz"; private static final String OUTPUT_FILE = "/opt/new.csv"; public static void…
chrisTina
  • 2,298
  • 9
  • 40
  • 74