[OS X TeX] old Apple end-of-lines
André Bellaïche
abellaic at math.jussieu.fr
Mon Jan 19 11:20:02 EST 2009
Le 19 janv. 09 à 16:00, Jan Erik Moström a écrit :
> On Mon, Jan 19, 2009 at 15:49, André Bellaïche
> <abellaic at math.jussieu.fr> wrote:
>> Does anybody know if there exists a Unix program that transform
>> Unix or Mac
>> OS X end-of-lines to old Apple end-of-lines ?
>>
>> André
>> ----------- Please Consult the Following Before Posting -----------
>> TeX FAQ: http://www.tex.ac.uk/faq
>> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
>> List Archive: http://tug.org/pipermail/macostex-archives/
>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
>> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>>
>>
>
>
> I assume 'tr' would work
>
> --
> Jan Erik Moström, mostrom.eu
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>
Thank you.
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.
Do you think that
tr \n \r\n <file1 > file2
could work ?
More information about the MacOSX-TeX
mailing list