How do you know whether you have a DOS text file or a UNIX text file? A line feed and a carriage return terminate the DOS text files lines. UNIX uses only a line feed character. By using the Unix command file you can figure out which type of file you are dealing with.
$ file dosfile.txt dosfile.txt: ASCII text, with CRLF line terminators $ file unixfile.txt unixfile.txt: ASCII text
To convert files back and forth from one format to another you have several options. A few of them are showed here.
Comments: 18