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. [1]
The tofrodos package provides this functionality to Linux, Mac OSX, and can be downloaded for windows.[2]
Usage
unix2dos [-p] [file]
- -p
- Access and modification time of the original file are preserved.
- file
- File to convert
See also
References
- ^ A practical guide to LINUX. Mark G. Sobell ISBN 0-13-147823-0 Page 55
- ^ "tofrodos". http://www.thefreecountry.com/tofrodos/. Retrieved 2009-10-05.
External links
- Tofrodos - software that provides dos2unix and unix2dos
- Dos2Unix Online - Online web interface to the dos2unix program
This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors (see full disclaimer)