Change DOS-style line endings to Unix-style. Replaces CRLF with LF. More information: https://manned.org/dos2unix.
dos2unix filename
dos2unix -n filename new_filename