리눅스에서 윈도우 개행문자 있는지 확인

1 개요[ | ]

리눅스에서 윈도우 개행문자 있는지 확인

2 방법 1: file[ | ]

Bash
Copy
file 파일명
없음
Console
Copy
$ file testfile1.txt
testfile.txt: ASCII text
있음
Console
Copy
$ file testfile2.txt
testfile2.txt: ASCII text, with CRLF line terminators

3 방법 2:cat -v[ | ]

Console
Copy
$ cat -v testfile2.txt
hello^M
world^M

4 같이 보기[ | ]

5 참고[ | ]