unix2dos
From Wikipedia, the free encyclopedia
The introduction to this article provides insufficient context for those unfamiliar with the subject. Please help improve the article with a good introductory style. |
This article is orphaned as few or no other articles link to it. Please help introduce links in articles on related topics. (May 2007) |
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