Problem with gzip

Kalyansid

New Member
Hi,
I have a problem when i gzip a file in unix. Before gzipping the contents of the .csv file get displayed properly. However after i had gzipped the file and then try to read the contents of the file, the layout looks very wierd. Please suggest... UNIX silent gzip VALUE(v-zipfil).

regards
 
Let me get this right.

1.You are Compressing a csv file.
2.This file is readable before you compress it.
3.You compress the csv file using gzip.
4. Now you can't view the file?? What are you expecting to see????

The the csv file is now in a compress format and cannot be viewed by excell/notepad/vi.

CSV is an ASCII file and it now been converted into a binary file format. You have to you gunzip first before viewing the file.
 
Hi Cecil,

I am trying to view the file using winzip. On opening the file, the layout gets changed and it looks wierd. Before gzip the file opens perfectly fine. Only after i gzip the file, then ftp it to a remote server and then unzip it i am not able to see the file properly as before. I think it has to be sent in a binary mode. do you have any idea how that is done.

thanks
 
Also check the UNIX file format vs Windows file format:

UNIX has Line Feed and Windows (DOS) has Carriage Return and Line Feed.
 
Back
Top