Questions tagged [gunzip]
The gunzip tag has no summary.
34 questions
1 vote
1 answer
84 views
Recover mis-gzipped folder / directory & files
I needed to compress/archive a folder, so I ran the following command: gzip -v --rsyncable --fast -r myFolder/ -c > myFolderArchive.gz ...foolishly thinking this was going to do just what I ...
1 vote
2 answers
219 views
Gunzip all the files with a given extension in a different folder
I have a folder with 28 gz files with the extension .gz and 28 files with the extension .gz.bam. I would like to unzip all the 28 .gz files and send them to another folder. I was doing one by one as ...
1 vote
1 answer
1k views
How Can I Pipe the Sed Command?
I have a bash script that imports wordpress dbs for me pretty reliably, but one of my sites came from a former wordpress multisite, therefore the database includes DEFINERS within the database that ...
0 votes
3 answers
2k views
Gunzip extract *.gz files to another location
This code was written to extract multiple .tar files to another location and woks fine ls -1 ${short_filename} \ | while read file; do \ tar -zxvf "$file" -C ${pentaho_temp_path}/${...
0 votes
1 answer
473 views
For all zips, and unzip in working directory and maintains its structure
With this command find . -name '*.zip' -exec unzip '{}' ';' we find all zip files under . (directory), then unzip them into the current working directory, However, the structure is gone. /backUp/...
0 votes
1 answer
121 views
Getting rid of spurious directories with tar -xzvf, while gunzipping
I want to trim the path of the gunzipped tarball so that some "spurious" leading directories are excluded. Let me explain with an example. I have the following directory structure, as ...
0 votes
0 answers
349 views
Trying to append a file to a tarball through a pipe
I am trying to execute a simple pipeline which should gunzip a file and send the result to stdout. This is ten piped into a tar command which to my knowledge should append the file I specify. I use a ...
0 votes
2 answers
3k views
Gzip of folder while retaining original timestamp
I want to do gzip of folder, and also want to retain original timestamp for that folder. Can someone suggest any way around it. i tried below mentioned code. The timestamp which i am getting the time ...