Uncompression file problem


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Uncompression file problem
# 1  
Old 07-23-2010
Java Uncompression file problem

hi
i get .gz file from internet

when i uncompress that file i getting wrong file fatmat


for ex :

file name x.gz
inside x.gz ---> file name is abc.bat


when i uncompresss
>gunzip x.gz

i am getting output as

abc

file format is wrong

is thr any cmd to get proper file farmat after uncompress ??

thank in advance
# 2  
Old 07-23-2010
are you sure, the file you have received is of gzip format..

cross check with file command, and you should get something similar like this,
Code:
 
 
$ file a.gz
a.gz:           gzip compressed data - deflate method

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Unzip - percentage of uncompression

Hi Experts, Recently i have faced couple of issues in uncompressing a file. File is is not getting uncompressed fully.i.e. E.g. say if the file has 1000 lines , it uncompresses 100 lines and finishes with out error. is there a way to check the percentage of uncompression done by the unzip... (1 Reply)
Discussion started by: mohanpadamata
1 Replies

2. Shell Programming and Scripting

Xmllint - Xml-file problem --ods file not opening

Dear All, this is my first post on this Forum, glad to be here. I'm trying to fix an .ods file. Yes, I had a backup, but it's also corrupted. When opening the document I get this EM: read error format error discovered in the file in sub-document content.xml at 2,337040(row,col). So I... (3 Replies)
Discussion started by: jameslast
3 Replies

3. UNIX for Dummies Questions & Answers

File with -rw-r--r-- problem

Hi, I have a file on Sunos with permissions: -rw-r--r-- When I 'more' it...I get the message: *** filename: directory *** And it is acutally a directory. How come there is no 'd' shpwing on the file permission settings? Thanks (2 Replies)
Discussion started by: Grueben
2 Replies

4. Shell Programming and Scripting

Problem in test file operator on a ufsdump archive file mount nfs

Hi, I would like to ask if someone know how to test a files if exist the file is a nfs mount ufsdump archive file.. i used the test operator -f -a h almost all test operator but i failed file1=ufs_root_image.dump || echo "files doesn't exist && exit 1 the false file1 is working but... (0 Replies)
Discussion started by: jao_madn
0 Replies

5. Shell Programming and Scripting

Problem with my file...

Hi all... I have a text file which i want to move to some remote directory... when i use command prompt to ftp that textfile,.. after ftp if i check the file by using vi i can see many ^M with the starting and end of each line... instead if i use grab and drop method to copy that... (5 Replies)
Discussion started by: smarty86
5 Replies

6. SCO

File size problem

I'm working on a IBM PC Serveur 325. I have a sequential file with more than 800000 records. The size of that file is 136755200. I wrote a cobol program (RM cobol) to delete records. Now the file has 180000 records and the size still the same 136755200. What I need to do to decrease the size.... (1 Reply)
Discussion started by: royinfo
1 Replies

7. Shell Programming and Scripting

File Spliting problem

I have a very big log file which looks like this: I need to split this file and create files with "+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+" as the delimiter. The file names need to be the contents of the next line after the delimiter(FIRST_ITEM,SECOND_ITEM...so on..). (7 Replies)
Discussion started by: engineer
7 Replies

8. UNIX for Advanced & Expert Users

Problem in converting password protected excel file to csv file in unix

I need to convert a password protected excel file which will be in UNIX server to a comma separated file. For this I need to open the excel file in UNIX box but the UNIX box doesn't prompt for password instead it is opened in an encrypted manner. I could manually ftp the excel file to local... (2 Replies)
Discussion started by: Devivish
2 Replies

9. Shell Programming and Scripting

Some problem about file test

Hi, I'm writing a part of script to test the files, here is what is looks like: if then do somthing fi This script runs well on HPUX. However, when I test it on Linux(redhat), it only works if there is only one file with name A*.TXT. If there's more than one files with... (8 Replies)
Discussion started by: phantandy
8 Replies

10. UNIX for Dummies Questions & Answers

Problem writing file path to txt file

if test -z "$1" then echo "you must give a filename or filepath" else path=`dirname $1` f_name =`basename $1` if path="." then path=`pwd` fi fi cat $f_name $path >> index.txt The only problem I am encountering with this is writing $path to index.txt Keeps going gaga: cat:... (1 Reply)
Discussion started by: Vintage_hegoog
1 Replies
Login or Register to Ask a Question