page

Apr 2, 2014

DOS format UNIX format error

when you use text file in both window and UNIX, linux

it could cause file format error because they use different newline


unix  <LF>          (each line ends with LF).
dos  <CR><LF> (each line ends with CR and LF).
mac  <CR>         (each line ends with CR).

CR(Carriage Return) , 0x0D
LF(Line Feed) , 0x0A


so if you use text file, you should check the text file has right format for the OS

you can change file format with text-editer (ex: Ultraedit)

for more information, visit

http://en.wikipedia.org/wiki/Newline

No comments:

Post a Comment