Link to home
Start Free TrialLog in
Avatar of viveksuvarna
viveksuvarna

asked on

Winzip and FTP to UNIX

Hi
I have to zip a 200 Meg file and ftp it to a UNIX box
im using the command line interface of winzip (wzzip) to zip the file
Due to the diff in treatment of line feeds and carriage returns between UNIX and DOS environments the file i zip and send when unzipped on the unix box has carraige returns in them
Has anyone come across sucha an issue and how did u resolve this
Avatar of sunnycoder
sunnycoder
Flag of India image

Hi viveksuvarna,

> when unzipped on the unix box has carraige returns in them
On the Unix prompt execute command

dos2unix /path/to/file

The command will performed the necessary conversions

Cheers!
Sunnycoder
Avatar of viveksuvarna
viveksuvarna

ASKER

Yeah agreed i can dos2unix it
But i cant change any code on the unix side
so any code changes /manipulations i do has to be b4 i ftp the file across

ASKER CERTIFIED SOLUTION
Avatar of Steve Knight
Steve Knight
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You wont have to change any code unless you are talking about porting the code rather than simply transfering it ....
Sounds good to me.