LF - Kote

Replace CRLF to LF in bash script

Some of my bash scripts were not running with the following error:

$ ./test-script.sh
-bash: ./test-script.sh: /bin/bash^M: bad interpreter: No such file or directory

After some googling, it turned out that on Linux host script files should have a specific line break(LF), and using default Windows (CRLF) is not supported.

How to fix:

Continue reading “Replace CRLF to LF in bash script”