GNU/Linux Command – UNIX2DOS

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 writeinto dos.txt  $ unix2dos -k gnu.txt -- Convert and replace gnu.txt, while keeping original date stamp.
Read: man unix2dos

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: