How do I know if a file has carriage return?

How do I know if a file has carriage return?
Answer
Alternatively, from bash you can use
od -t c <filename> or just od -c <filename> to display the returns. In the bash shell, try cat -v <filename> . This should display carriage-returns for windows files.
 

Tìm kiếm

Back
Top