The easiest way is probably to use the stream editor sed to remove the ^M characters.Remove CTRL-M characters from a file in UNIX If you see this, you're probably looking at a file that originated in the DOS/Windows world, where an end-of-line is marked by a carriage return/newline pair, whereas in the Unix world, end-of-line is marked by a single newline. Most common reasons are when you directly copy a file from a windows system or submit form data copied and pasted from a windows machine. Nothing to worry about.Īlso question is, what does M mean in git?Ĭheck man git-status : M = modified A = added D = deleted R = renamed C = copied U = updated but unmerged.Īlso Know, what is M in Linux? Control M ( ^ M) characters are introduced when you use lines of text from a windows computer to Linux or Unix machine. " git diff" uses the LF to detect the end of line, leaving the CR alone. Windows typically uses CRLF at the end of the line. Under Linux/Unix/Mac OS X a line is terminated with a single "line feed", LF. Thanks, > Frank > ^ M is the representation of a "Carriage Return" or CR.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |