Advertisement

Dos to Unix Newlines

Started by November 05, 2002 02:38 PM
2 comments, last by Monder 22 years 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
There''s a utility called ''tofromdos'' which has a ''dos2unix'' program as part of it.

Advertisement
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