Questions tagged [gunzip]
The gunzip tag has no usage guidance.
28
questions
-1
votes
3
answers
75
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
0
answers
49
views
Unable to decompress gzip file ("not in gzip format")
I've been tasked with diagnosing an issue with a webpage, and I've been able to trace the issue back to a gzip'ed JavaScript file, jquery.min.js.gz. To view the code, I've downloaded and attempted to ...
0
votes
1
answer
29
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/...
1
vote
1
answer
167
views
What should dirname and basename be in this command?
With this command, we can recursively unzip archives in a directory and its sub-directories and remain its structure in the current working directory.
find ../backUp/ -name "*.zip" |
...
0
votes
1
answer
35
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
2
answers
1k
views
Silence the `unknown suffix -- ignored` error
In a directory with many subdirectories, I have some .gz archives. I want to recursively extract all these archives using gunzip. Hence, I use:
gunzip -r myDir
However, this command exits with "...
0
votes
0
answers
95
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
1
answer
94
views
List only files and not directories in archive
I have a zip achieve like below
$ unzip -l 5124.zip
Archive: 5124.zip
Length Date Time Name
--------- ---------- ----- ----
0 01-13-2021 09:22 u/
0 01-13-2021 09:...
0
votes
2
answers
633
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 ...
0
votes
1
answer
859
views
"xz : (stdout) : Write error: File too large" while writing a tar archive
I wanted to compress a directory whit size of about 25 GB to .tar.xz format using following command:
tar --xz --create --verbose --file myArchive.tar.xz /patch/to/my/dir
but got these error lines:
xz:...
1
vote
1
answer
213
views
how to fix "tar: Cannot verify compressed archives" error?
I wanted to compress a directory into .tar.xz format and verify it after writing so I wrote a command like this:
tar --xz --create --verbose --verify --file myArchive.tar.xz /patch/to/my/dir
but it ...
0
votes
1
answer
90
views
Trouble with unzipping files - Argument list to long [duplicate]
I have to gunzip all the files in folder (say Folder A), which has multiple folder hierarchy with files in each of them. This Folder A is present in thousands of folders in a directory. I need to ...
0
votes
0
answers
30
views
How to unzip latest .gz file on unix serve and then re-direct the filename along with path into another file?
I have some 10 files of particular pattern coming every day on my server in "tmp" directory like below:
abc1.px.20200820034058.gz
abc2.px.20200820062036.gz
mno.px.20200819192323.gz
abc1.px ...
2
votes
1
answer
431
views
GNU parallel + gunzip (or 7z, or bsdtar, or unzip): extract every "archivename.zip" into (to-be-created) its "archivename" subfolder
As in title. I've got a lot of ZIP archives that I want to extract.
All archives have their own unique name.
All archives contain files only (inside archives there are NOT folder(s) at all: no ...
-2
votes
2
answers
53
views
searching for a number(eg. mobile number) in more than 1000 gzip files? [closed]
I have more than 1500 gzip files and now I have to search for a particular number (eg.mobile number) in those 1500 gzip files. Which command or script should I use to get these problem solved?
0
votes
0
answers
428
views
Shell script to zcat and gunzip multiple files
I have the following files
SiteTraffic_1141875176444311430_20191120.json.gz0000.gz
SiteTraffic_1141875176444311430_20191120.json.gz0001.gz
SiteTraffic_1141875176444311430_20191120.json.gz0002.gz
...
0
votes
0
answers
224
views
corrupt tar.gz archive
I'm new here and I want to ask something maybe you can help me. I wanted to service my NAS and I had to download all the data that I had on it, so what I did is downloaded whole data trough webbrowser ...
2
votes
1
answer
6k
views
UNZIP: Cannot find or open filename.zip Error
I have a zipped file (using Winrar) and the size of it is more than 4GB from Windows 10. I've already dumped the file in Unix Server and I want to unzip the file but the error always shows:
Code: ...
0
votes
1
answer
529
views
Unzipping the parent directory contents ignoring sub-directory and their contents
I am unzipping the .zip file. I'm able to do so but my requirement to extract only the parent folder data ignoring any sub directory and their contents.
Below is the name format of zip file.
...
0
votes
1
answer
2k
views
tar + compress folder to tar.gz and removed the folder
by the following way we tar the folder presto-server-0.210 to file
tar -czvf presto-server-archive.tar.gz presto-server-0.210
so after we tar the folder , folder still exists
is it possible to use ...
-1
votes
2
answers
299
views
gunzip on all present files safety regarding memory
I want to look for the presence of a string on all gziped files on server.
I am afraid if I run something like gunzip -c *.gz | grep "string to be searched" server get overloaded with cache for ...
4
votes
1
answer
183
views
gunzip on Embedded machine
I'm using BusyBox 1.24.1 on my Embedded Linux machine (with kernel v3.10.31) and I get behavior I can't understand when unzipping files.
The gunzip command (often, but not always) fails,
with no ...
3
votes
1
answer
1k
views
How to maintain sort order with xargs and gunzip
I'm attempting to extract the contents of some files by alphabetical (which in this case also means date and iteration) order and when I test the process first with ls:
$ find /opt/minecraft/wonders/...
3
votes
1
answer
19k
views
Unzipping a .gz file to get a text file but getting a binary file? [closed]
I have a .gz file called document.txt.gz file. It is supposed to be a text file which got compressed to a gzip file. When I uncompress, I am getting a corrupt file.
I ran the following commands:
$ ...
0
votes
3
answers
80
views
Process a text file and a gunzipped text file in single command [duplicate]
I have a use-case to process following file types:
1 - mylog_1.log
2 - mylog_2.log.gz
I have to run two different text processing commands on each of them as follows:
cat mylog_1.log | grep text | ...
0
votes
1
answer
1k
views
how to list content of zip file
I created a zip file which was very large in size, I then split the main zip into chunks of 3GB. I used the command
zip test.zip --out new_test.zip -s 3300m
which resulted into 3 files
test.zip
...
0
votes
2
answers
345
views
gunzip and create directories following the name of the zip file
I have the following gzip file: hdf5-1.8.18.tar.gz. When I unzip the file with the following command:
gunzip < hdf5-1.8.18.tar.gz | tar xf -
It unzips into the created following directory: hdf5-1....
236
votes
2
answers
875k
views
Unzipping a .gz file without removing the gzipped file [duplicate]
I have a file file.gz, when I try to unzip this file by using gunzip file.gz, it unzipped the file but only contains extracted and removes the file.gz file.
How can I unzip by keeping both unzipped ...