Summery

dos2unix converts Windows-style line endings (CRLF) to Unix/Linux line endings (LF).

This matters when moving scripts between Windows and Linux because Windows adds \r:

Windows: script.sh\r\n
Linux:   script.sh\n

Commands

dos2unix *.txt - Basic usage