mac2unix Command Examples

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

mac2unix {{path/to/file}}

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

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

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