mac2unix Command Examples

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

mac2unix {{path/to/file}}

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

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

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