There are several utility software to convert text files from UNIX or Linux to DOS operating systems and vice-versa; however, it always helps to know the manual conversion. In shell programming languages like UNIX or Linux the text files conclude with a new line operator"\n" also known as the line feed and its ASCII code is 0A. A DOS Text file concludes a line by the carriage return or the entry key "\r": its ASCII code is 0D. The lines in the DOS end with CRLF or with "\r\n". To convert this DOS text into UNIX or Linux erase the "\r"; you can also use ASCII codes if you are using GNU-sed version. From UNIX to DOS you may add the "\r" or else use GNU-sed notations symbolically, using the ASCII codes.