Tag Archives: UNIX

Remove ^M from Files Using the vi Editor

By | February 25, 2015

After moving text files from Microsoft Windows to the UNIX environment, I frequently end up with the ^M characters at the end of each line in the files. This occurs because UNIX uses 0xA for the newline character, while Windows uses a combination of two characters: 0xD 0xA. 0xD is the carriage return character. The vi editor… Read More »