Note that DOS text files contain extra formatting characters that will show up on your screen. A line of text in a UNIX system file is terminated by a line feed character. In DOS files, a line is terminated by a line feed and a carriage return (^M). Because no attempt is made to change the nature of DOS files, the carriage return character is visible when editing a DOS file from the UNIX system partition. Thus when a DOS file that contains a series of numbers is opened using vi(1), it looks something like this:
This is a DOS file.^M Note that each line ends in a spurious character^M like this.^M ~ ~ ~ ~ ~ ~ "TEST.TXT" 3 lines, 100 characters