Check for line endings with od (also you can use other hex tools with -c option – which is the Printable Characters format)

  • DOS: \r \n  (carriage return and a newline) CR LF
  • LINUX (and new MACs, Mac OS X, are POSIX-compliant): \n  (just a new line) LF
  • OLD MACS (Classis MACS): \r  (just a carraige return)  CR

 

Examples:

Lets look at this file thats 2 lines

DOS EOL

LINUX EOL

OLD MACS EOL

The end

Leave a Reply

Your email address will not be published. Required fields are marked *