[OS X TeX] old Apple end-of-lines

Maxwell, Adam R adam.maxwell at pnl.gov
Mon Jan 19 13:48:35 EST 2009

On 01/19/09 08:20, "André Bellaïche" <abellaic at math.jussieu.fr> wrote:
> Since Apple end of line is CRLF = \r\n (I suppose \n = newline means
> linefeed), and Unix end of line is LF = \n, this means I should
> replace with tr any \n by \r\n.

Apple line endings are \r, while DOS/Windows line endings are \r\n (CRLF)
[1].  What are you trying to accomplish?

> Do you think that
> tr \n \r\n <file1 > file2

If you want old-style Mac line endings as your message subject indicates,
use the tr command I posted earlier.


[1] http://en.wikipedia.org/wiki/Newline

More information about the MacOSX-TeX mailing list