PDA

View Full Version : Make an unix file in windows



kepler
10-02-2003, 01:29 AM
Hi,

I've got a program in ansi C that I can compile with DJGPP in my PC windows XP to dos format.
Meanwhile, someone told me that there is a way of converting, in an automatic way, a file in dos to unix format using something called dos2unix.

Does anyone knows anything about this?


Best regards,

Salem
10-02-2003, 12:55 PM
Yeah, you type

man dos2unix

on your unix box

thedumbmutt
10-03-2003, 08:38 AM
Just curious, what is the difference? CRLF in dos as opposed to CR in unix?

Hammer
10-03-2003, 01:08 PM
Originally posted by thedumbmutt
Just curious, what is the difference? CRLF in dos as opposed to CR in unix?
They're end of line markers.

CRLF (carriage return/line feed) for Windows.
LF for Unix.