unix2dos
Convert newline format from unix "\n" to dos "\r\n". toybox
On Linux
Linux
Convert newline format from unix "\n" to dos "\r\n". If no files listed copy from stdin, "-" is a synonym for stdin.
unix2dos [FILE...]
Linux
Change Unix-style line endings to DOS-style. Replaces LF with CRLF.
Change the line endings of a file
unix2dos path/to/fileIdentifyCreate a copy with DOS-style line endings
unix2dos --newfile path/to/file path/to/new_fileIdentifyDisplay file information
unix2dos --info path/to/fileIdentifyKeep/add/remove Byte Order Mark
unix2dos --keep-bom path/to/fileIdentify