본문 바로가기

CS/Linux

리눅스에서 파일 EOL 확인하기

$ od -c <파일 이름> | grep -E 'r|n'

 

결과 OS EOL
\r\n Windows CR-LF
\n Linux LF