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