Change macOS-style line endings to Unix-style. Replaces CR with LF. More information: https://waterlan.home.xs4all.nl/dos2unix.html.
mac2unix filename
mac2unix -n filename new_filename