dos2unix Command Examples

Change DOS-style line endings to Unix-style. Replaces CRLF with LF. See also unix2dos, unix2mac, and mac2unix. More information: https://manned.org/dos2unix.

dos2unix {{path/to/file}}

dos2unix {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}

dos2unix {{-i|--info}} {{path/to/file}}

dos2unix --{{keep-bom|add-bom|remove-bom}} {{path/to/file}}