Converting file end characters in DOS, UNIX, and MAC format
Forum topic
kitt decided around 11:03 on 24 October 2004 to publish this:
Forums:
The various different file conversions to fix the end characters from different file system types.
DOS to UNIX
To convert a DOS file called file.tex to UNIX format do
dos2unix file.tex
UNIX to DOS
To convert it back do
unix2dos file.tex
MAC to UNIX
To convert a MAC file called in_file to UNIX format do
tr '\015' '\012' < in_file > out_file