sed -i 's/\r$//' filename
Inside WSL: sudo apt-get install dos2unix Then, dos2unix [file] Full documentation: man dos2unix #mdem dos2unix test.sh