Different line-endings on diffrent OS

Windows, Linux/Unix and Mac have different line-endings on text files.

A quick overview on the endings are:

  • Windows-style line endings are CRLF ( \r\n or hex 0D0A )
  • Mac-style line endings are CR ( \r or hex 0D )
  • Unix-style line endings are LF ( \n or hex 0A )

A HEX editor can be used to double check that the correct endings are written.