unix2dos — UNIX to DOS text file format converter.

Author:

Creative Commons is the best and cheapest way to share your art, music
or knowledge. There are around 29 internationalized versions of CC.
The time has arrived for India to have its own Creative Commons.
URL: http://creativecommons.org/worldwide/overview
URL: http://www.techmag.biz/?q=node/81

One Day One Command
===================

unix2dos — UNIX to DOS text file format converter.

Summary:

Each OS will indicate the line end using Line Feed (LF,10) or Carriage
Return (CR,13). Unix uses LF as line end, Windows/DOS uses CR/LF and
MacOS uses CR.

So when transferring a file from Linux to DOS, you have to convert the
Line end to DOS format. unix2dos will convert the Unix text file to
DOS format.

Examples:

$ unix2dos gnu.txt — Convert and replace gnu.txt.

$ unix2dos -n gnu.txt dos.txt — Convert gnu.txt and write into
dos.txt

$ unix2dos -k gnu.txt — Convert and replace gnu.txt, while keeping
original date stamp.

Read: man unix2dos

Leave a Reply

Your email address will not be published. Required fields are marked *