Error when unzipping a file with extension .gz

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Error when unzipping a file with extension .gz
# 1  
Old 11-21-2013
Error when unzipping a file with extension .gz

I am trying to unzip a file with name D_R_38957222_20111410.txt.gz using the below command.

gunzip D_R_38957222_20111410.txt.gz

However, I am getting the following error while using the gunzip command as below...

gunzip: D_R_38957222_20111410.txt.gz: invalid compressed data--crc error

gunzip: D_R_38957222_20111410.txt.gz: invalid compressed data--length error

Any Suggestions here will be very helpful.
# 2  
Old 11-21-2013
Try file D_R_38957222_20111410.txt.gz to see what kind of file it is. It's possible the gz extension is a mistake.

If it really is a gz file, it must be corrupted.
# 3  
Old 11-21-2013
Thanks for the quick response Corona688, I did check what you asked me to and I found out that the file is compressed file... Please find below for the output of the command
file D_R_38957222_20111410.txt.gz

Output was as below
D_R_38957222_20111410.txt.gz: gzip compressed data, from FAT filesystem (MS-DOS, OS/2, NT)

# 4  
Old 11-21-2013
What version of gzip/gunzip are you using?
# 5  
Old 11-21-2013
I have the following version installed...

gunzip 1.3.5
Copyright 2002 Free Software Foundation
Copyright 1992-1993 Jean-loup Gailly

# 6  
Old 11-21-2013
That is over 10 years old, I wonder if a newer version would work.
# 7  
Old 11-21-2013
I am a newbie and do not really know how to install the new version, can you guide me on the same if possible?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unzipping .Z file in UNIX

Hi , How can I unzip a .Z file in Unix? Thanks and regards, Anupam (3 Replies)
Discussion started by: Anupam_Halder
3 Replies

2. Shell Programming and Scripting

Error while Unzipping

Hi, I have transfered a Zip file from Windows to Unix and tried to Unzip it in Unix using ksh. But it throws an error: error : missing 24 bytes in zipfile (attempting to process anyway) error : attempt to seek before beginning of zipfile (please check that you have transferred or... (2 Replies)
Discussion started by: angie1234
2 Replies

3. Shell Programming and Scripting

Unzipping the file

I have my folder structure like a file is placed in one folder. Inside is two other zip files and If i unzip i have folder a folder z and inside folder z there are different folders with event time appended to it. Inside the every event folder ,I have a sub folder... (1 Reply)
Discussion started by: weknowd
1 Replies

4. Linux

unzipping file > 2gb

I am not able to unzip file greater then 2gb, Any suggestions how to do that in linux? Regards, Manoj (5 Replies)
Discussion started by: manoj.solaris
5 Replies

5. Shell Programming and Scripting

Unzipping latest zip file by name.

I have these zip files that come in with the same name, but different versions. We'll say: I was wondering if there is a single command (or even piped command, thus still making it a single command) that will let me unzip the latest... (3 Replies)
Discussion started by: mrwatkin
3 Replies

6. Solaris

Alter zip file without unzipping

I have some zip files. Every file has a "folder/xml file" inside it. Is there any way to change these zip files directly without unzipping them. I want to convert these zip files to "/xml file" (want to move the xml file/s one root up by removing the folder inside it.) Ex: -bash-3.00$ for file... (1 Reply)
Discussion started by: _prasad
1 Replies

7. HP-UX

Error while UNZIPPING

Hi, I have in windows machine, i moved that .zip to unix throught ftp. when i tried to unzip the .zip file getting the error. please see the below information for the same. I am using the below command to UNZIP : unzip /users/test/ /users/test/test111 Below are the... (1 Reply)
Discussion started by: srujana
1 Replies

8. UNIX for Dummies Questions & Answers

reading a zipped file without unzipping it?

Dear all, I would like to ask how i can read a zipped file (file.gz) without actually unzipping it? i think there is a way to do so but i can't remember it.. can anyone help? thanks in advance.. (1 Reply)
Discussion started by: marwan
1 Replies

9. Shell Programming and Scripting

How to search a pattern inside a zipped file ie (.gz file) with out unzipping it

How to search a pattern inside a zipped file ie (.gz file) with out unzipping it? using grep command.. Bit urgent.. me (2 Replies)
Discussion started by: senraj01
2 Replies

10. UNIX for Dummies Questions & Answers

unzipping .zip file on HP and Solaris

I am transferring a large .zip file (20 GB) from an NT server to HP-UX and Solaris servers. Originally I tried to use info-zip's unzip, but I found out pretty quickly that it does not support files over 4GB. Any suggestions on how to work around this problem? Different decompression utility?... (9 Replies)
Discussion started by: dangral
9 Replies
Login or Register to Ask a Question