Dos to Unix Newlines

Started by
2 comments, last by Monder 21 years, 5 months ago
Is there a simple program that can convert dos newlines to unix ones? I''m developing a game and I''m developing it on both windows and linux and whenever I transfer the plain text datafiles across my program can never seem to read them properly
Advertisement
There''s a utility called ''tofromdos'' which has a ''dos2unix'' program as part of it.

You can use the tr utility to strip all if the ^M''s out of the text file.

The nightmare travels across the cosmos with his burning mane. The trail of ash that is produced.

?Have a nice day!?


  col <dosfile.txt> unixfile.txt    


that also works.

[edited by - coreyh on November 5, 2002 10:49:07 PM]
kdIXfA.gamedev.10.coreyh@xoxy.netwww.ipeg.com/~rlfc

This topic is closed to new replies.

Advertisement