[Ilugc] One Day One GNU/Linux Command (UNIX2DOS)

  • From: sbharathi@xxxxxxxxxxxxx (Bharathi Subramanian)
  • Date: Wed Oct 29 10:00:59 2008

One Day One GNU/Linux Command 
=============================

unix2dos -- UNIX to DOS text file format converter.

Summary:

Each OS will indicate the End of Line (EoL) with a Line Feed (LF,10)
and/or Carriage Return (CR,13). So after transferring a file from DOS
to Linux, we have to convert the DOS EoL format to Linux format. EoL
in Unix is LF, in Windoz/DOS is CR/LF and in MacOS is CR.

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

HTH :)
--
Bharathi S


Other related posts:

  • » [Ilugc] One Day One GNU/Linux Command (UNIX2DOS) - Bharathi Subramanian