dos2unix
utility, you may still have issues with your program's logic. Just keep in mind that a new line on Windows requires a carriage return \r
character to move the cursor to the first column as well as a newline \n
character to start a new line. Linux simply uses \n
for new lines without the need for carriage returns.