DOS2UNIX(1d) UNIX System V(MS-DOS Compatibility) DOS2UNIX(1d)
NAME
dos2unix - convert text files from MS-DOS format to Unix format
SYNOPSIS
dos2unix file
dtou file
dtox file
DESCRIPTION
The dos2unix command converts text files from MS-DOS format to Unix
format and writes the converted file to standard output.
All MS-DOS text files use a carriage-return/linefeed combination, CR-LF,
to indicate a newline. Unix files use a single newline LF character.
The conversion replaces each CR-LF with LF. MS-DOS uses a Control-Z
character as an end-of-file marker. This is stripped off also.
Some DOS and Unix commands can handle this difference in format, but
unexpected results can sometime occur. For example, a Unix text file
appears to a DOS text editor as containing one very long line, while a
DOS text file appears to a Unix text editor as having extra Control-M
characters at the end of each line.
Note that the dos2unix command is also known as dtox or dtou.
NOTES
To use the MS-DOS emulator (Merge 386), see the dos command.
SEE ALSO
dos(1d), unix2dos(1d)
10/89 Page 1