Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 17 May 2006 @ 09:06:42 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


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   )


     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023