Shell
Check Whether The File Is Dos Format.
In DOS/Windows text files a line break, also known as newline, is a combination of two characters: a Carriage Return (CR) followed by a Line Feed (LF). In Unix text files a line break is a single character: the Line Feed (LF).You can use cat -A fileName to check if there is ^M$ in Read more…