|
|
Archives of the TeradataForum
Message Posted: Wed, 17 May 2006 @ 09:06:42 GMT
Subj: | | Re: What is ('0A'X)? |
|
From: | | Christopher.Hamilton |
Ed Ray said:
| In DOS/Windows a text file row is delimited with only a CarrageReturn (CR) in hex 0D. | |
| In Unix a text file row is delimited with CR and LF. | |
I said:
| PCs use a carriage return/linefeed pair to indicate end-of-line, while Unix uses carriage return only. Macs use linefeed only, just
because they can. | |
Actually we're both wrong.
PC: CRLF ( hex '0d0a' , RegEx \r\n )
Unix: LF ( hex '0a' , RegEx \n )
Mac: CR ( hex '0d' , RegEx \r )
| |