unix2dos [file...]

Unix to DOS text file format convertor

Arguments

NameDescription
filefilepaths

Options

NameDescription
-h, --helpShow help for dos2unix
--Treat all following options as file names. Use this option if you want to convert files whose names start with a dash
--allow-chownAllow file ownership change in old file mode
-asciiConvert only line breaks. This is the default conversion mode
-isoConversion between DOS and ISO-8859-1 character set
-1252Use Windows code page 1252 (Western European)
-437Use DOS code page 437 (US). This is the default code page used for ISO conversion
-850Use DOS code page 850 (Western European)
-860Use DOS code page 860 (Portuguese)
-863Use DOS code page 863 (French Canadian)
-865Use DOS code page 865 (Nordic)
-7Convert 8 bit characters to 7 bit space
-b, --keep-bomKeep Byte Order Mark (BOM). When the input file has a BOM, write a BOM in the output file
-c, --convmode <CONVMODE>Set conversion mode
-D, --display-enc <ENCODING>Set encoding of displayed text
-f, --forceForce conversion of binary files
-gb, --gb18030On Windows UTF-16 files are by default converted to UTF-8, regardless of the locale setting
-i <value>Display file information. No conversion is done
--info <value>Display file information. No conversion is done
-k, --keepdate
-L, --licenseDisplay program's license
-l, --newlineAdd additional newline
-m, --add-bomWrite a Byte Order Mark (BOM) in the output file. By default an UTF-8 BOM is written
--newfile <INFILE> <OUTFILE>New file mode. Convert file INFILE and write output to file OUTFILE. File names must be given in pairs and wildcard names should not be used or you will lose your files
--no-allow-chownDon't allow file ownership change in old file mode (default)
-o, --oldfile <FILE...>Old file mode. Convert file FILE and overwrite output to it
-q, --quietQuiet mode. Suppress all warnings and messages. The return value is zero. Except when wrong command-line options are used
-r, --remove-bomRemove Byte Order Mark (BOM). Do not write a BOM in the output file
-s, --safeSkip binary files (default)
-u, --keep-utf16Keep UTF-16 encoding
-ul, --assume-utf16leAssume that the input format is UTF-16LE
-ub, --assume-utf16beAssume that the input format is UTF-16BE
-v, --verboseVerbose operation
-F, --follow-symlinkFollow symbolic links and convert the targets
-R, --replace-symlinkReplace symbolic links with converted files
-S, --skip-symlinkKeep symbolic links and targets unchanged (default)
-V, --versionDisplay version number