Getting rid of Windows end of line characters in Linux

Ever run into the error: “bad interpreter: No such file or directory”? The problem is you have CRLF end of line characters… The solution, run this command on the file in Linux…

sed -i 's/r//' filename

Leave a Reply