unix2mac Command Examples

Change Unix-style line endings to macOS-style. Replaces LF with CR. See also unix2dos, dos2unix, and mac2unix. More information: https://waterlan.home.xs4all.nl/dos2unix.html.

unix2mac {{path/to/file}}

unix2mac -n {{path/to/file}} {{path/to/new_file}}

unix2mac -i {{path/to/file}}

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