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

use pandas to retrieve files over FTP

I'm just getting to grips with pandas (which is awesome) and what I need to do is read in compressed genomics type files from ftp sites into a pandas dataframe. This is what I tried and got a ton of errors: from pandas.io.parsers import * chr1 =…
Cath Penfold
  • 281
  • 1
  • 3
  • 6
2
votes
1 answer

use gunzip to calculate crc32 code of one string

all. I want to use gunzip to calculate a string's crc32 code. String: teststring This command works well: echo -n teststring | gzip -f > /tmp/filename && gunzip -lv /tmp/filename && rm -f /tmp/filename But this command can't work: echo -n teststring…
chenzhiwei
  • 441
  • 6
  • 14
1
vote
3 answers

Feed unzipped files from all subdirectories into awk

I want awk to process all files in unzipped form from all sub-directories. This is what I've tried: It works only for top level directory files. for file in * do awk -v f="$file" 'NF > 0 {print f; nextfile}' <(gunzip -cf $(find . -type f)…
manish ma
  • 1,706
  • 1
  • 14
  • 19
1
vote
2 answers

Un-gzipping MRI Files in MATLAB

I'm learning MATLAB +SPM12 to do structural MRI analysis. To do this, I need to change the format of the files from gz to NIFTI. The guide I'm using said to use gunzip('*.gz') Flanker=gunzip('*.gz') Dot indexing is not supported for variables of…
1
vote
1 answer

process management and stream redirection in Haskell

In bash I can compose gzip and gunzip and get a command that outputs whatever I put into it. > echo "test" | gzip | gunzip test I want to implement a function in Haskell that implements the same composition as above, using the input/output streams…
Robert
  • 165
  • 10
1
vote
2 answers

Nextflow unzip gz file error: not a regular file

I am new to Nextflow and I want to unzip a fastq.gz file. But It raised the error gunzip: SRR1659960_05pc_R1.fastq.gz is not a regular file. I tried to run the same command directly in my console, it works well. My Nextflow script is: process…
1
vote
1 answer

Unzip 40k+ .gz files using terminal

I have downloaded log files from a GCP bucket, that I need to parse in a later task. But for now, the files are compressed and are over 40k .gz files. I tried few commands and none of them worked: find . -prune -name '*.gz' -exec gunzip {} + find .…
toh19
  • 1,083
  • 10
  • 21
1
vote
0 answers

using zcat to pass a gzipped file to a tool with options

A question like this was asked here, but never answered. I need to pass fastq files as options to a tool that does not accept gzipped inputs. Is there really no option other than to unzip every one of them? It fails when I pass the gzipped…
Jess
  • 186
  • 3
  • 13
1
vote
3 answers

gunzip preform task and rezip

I want to perform this awk -F, '$1 ~ /F$/' file.dat on a whole direcory of gziped files I want to be able to loop through each file unzip it perform the above command (print out any findings) rezip and move onto the next zipped file how can this…
matt123
1
vote
1 answer

How i can recursively unzip files in archive and then import to mysql?

I have a lot of *.sql.gz files in directory (400+). How i can unzip all of them and then import to Mysql? I tried gunzip -r < /share/new_moyo_ua | mysql -u root -proot new_moyo_ua But this not work fine (gzip: stdin: Is a directory).
anhckie
  • 145
  • 3
1
vote
1 answer

zcat skip streaming first line while reading from a compressed file

I am using the zcat command and streaming a .tar.gz file through a piping operation. I want to skip the first line while zcat reads the file. How is it possible?
Pujan Paudel
  • 71
  • 1
  • 7
1
vote
2 answers

How to extract all the .tgz files from directory

I have a directory directory/subdir1/temp1.tgz /subdir2/temp2.tgz /subdir3/subdirectory1/temp3.tgz /subdir4/temp4.tgz How to extract all temp files using terminal?
Mr Voice
  • 145
  • 9
1
vote
3 answers

gunzip in javascript

An API returns large resultsets and I was wishing that I could gzip it in PHP but I wouldn't know how to gunzip it in Javascript. Is there some sort of library that is capable of this in Javascript? I was searching the net and found some stuff but…
snucky
  • 179
  • 1
  • 11
1
vote
2 answers

Error extracting an archive using `tarfile`

I am getting an error while trying to extract a .tar.gz archive using the tarfile library. Here is the relevant code snippet: # `gzip_archive_bytes_content` is the content of the gzip archive, in "bytes" format repo_sources_file_object =…
Elouan Keryell-Even
  • 990
  • 1
  • 14
  • 36
1
vote
1 answer

gzip decompress a property in a json file using bash

I have to verify that the base64 encoded and gzipped contents of a property in a json file are the same as the raw ones using bash. I have been able to extract the property using jq: cat src/my-file.json | jq '.Attachment[] | .Contents["@Value"] |…
vamsiampolu
  • 6,328
  • 19
  • 82
  • 183