| DOS2UNIX(1) | User Commands | DOS2UNIX(1) |
dos2unix - convert text file from DOS format to ISO format
dos2unix [-ascii] [-iso] [-7]
[-437 | -850 | -860 | -863 | -865] [originalfile [convertedfile]]
The dos2unix utility converts characters in the DOS extended character set in the originalfile to the corresponding ISO standard characters in the convertedfile.
This command can be invoked from either DOS or SunOS. However, the filenames must conform to the conventions of the environment in which the command is invoked.
If the original file is not provided, standard input is used. If the converted file is not provided, standard output is used. If the original file and the converted file are the same, dos2unix will rewrite the original file after converting it.
The following options are supported:
-ascii
-iso
-7
On non-i386 systems, dos2unix will attempt to obtain the keyboard type to determine which code page to use. Otherwise, the default is US. The user may override the code page with one of the following options:
-437
-850
-860
-863
-865
File filename not found, or no read permission
Bad output filename filename, or no write permission
Error while writing to temporary file
Translated temporary file name = filename.
Could not rename temporary file to filename.
| September 7, 2026 | OmniOS |