unix2mac
Change Unix-style line endings to macOS-style. tldr-pages
On Linux
Linux
Change Unix-style line endings to macOS-style. Replaces LF with CR.
Change the line endings of a file
unix2mac path/to/fileIdentifyCreate a copy with macOS-style line endings
unix2mac --newfile path/to/file path/to/new_fileIdentifyDisplay file information
unix2mac --info path/to/fileIdentifyKeep/add/remove Byte Order Mark
unix2mac --keep-bom path/to/fileIdentify