trailing blank line in a text file

Matthew Saltzman mjs at ces.clemson.edu
Thu Jul 22 11:56:38 UTC 2004


On Thu, 22 Jul 2004, Andre Speelmans wrote:

> On Tue, Jul 20, 2004 at 06:53:32PM -0700, Craig White wrote:
>
> [ text about added line snipped ]
>
> > in Unix/Linux, a \n is the same as a line feed. Windows terminates lines
> > with a CR and Mac has both CR & LF
>
> IIRC this should be:
> Unix     -> LF (\n or hexcode 0A)
> Windows  -> CR + LF (\r\n or hexcode 0D0A)
> MAC      -> CR (\r or hexcode 0D)

Macs use CR in OS9 and earlier.  OSX is Unix-based and uses LF for
newline.

-- 
		Matthew Saltzman

Clemson University Math Sciences
mjs AT clemson DOT edu
http://www.math.clemson.edu/~mjs





More information about the users mailing list