nix, shell, perl, php, mysql and mac os x tips and tricks

Thursday, July 14, 2011

Check line endings of a file from command line

type 'od -c [filename]' and look for either \n (indicating LF) or \r \n (indicating CRLF)

No comments:

Post a Comment