unix2dos

From Wikipedia, the free encyclopedia


unix2dos is a UNIX tool to convert an ASCII text file from UNIX format (line break) to DOS format (carriage return and line break) and vice versa.

When invoked as unix2dos the program will convert a UNIX text file to DOS format, when invoked as dos2unix it will convert a DOS text file to UNIX format.

[edit] Usage

dos2unix [-p] [file]
-p
Access and modification time of the original file are preserved.
file
File to convert

[edit] See also

  • Newline: Helpful for understanding the differences between a DOS newline and a UNIX newline.

[edit] External links

  • Tofrodos - software that provides dos2unix and unix2dos
  • Dos2Unix Online - Online web interface to the dos2unix program