Analysis of information sources in references of the Wikipedia article "Retorno de carro" in Portuguese language version.
In programming languages such as C, Java, and Perl and regular expressions the return or CR character is represented as a \r escape sequence.
The Carriage Return (CR) is represented by ASCII number 13, and came from the movement of a typwriter to the left of a sheet of paper.
Here we are using \r, which is carriage return character.
In general, z/OS UNIX text files contain a newline character at the end of each line. In ASCII, newline is X'0A'. In EBCDIC, newline is X'15'.
The format of Windows and Unix text files differs slightly. In Windows, lines end with both the line feed and carriage return ASCII characters, but Unix uses only a line feed. As a consequence, some Windows applications will not show the line breaks in Unix-format files.
CR = Carriage Return (\r, 0x0D in hexadecimal, 13 in decimal) — moves the cursor to the beginning of the line without advancing to the next line.
On manual typewriters, the carriage was the part on top that held the paper and scooted leftward as you typed. At the end of each line, you’d push a lever to move the carriage to the beginning of the next line. On electric typewriters, this lever became the carriage return key, which you’d press at the end of each line.
How to remove CTRL-M (^M) blue carriage return characters from a file in Linux.