How can I tell if a file is DOS or Unix?

How can I tell if a file is DOS or Unix?
Answer
Detect file format with
grep. ^M is Ctrl-V + Ctrl-M. If the grep returns any line, the file is in DOS format.
 

Tìm kiếm

Back
Top