Thursday, August 28, 2014

/bin/sh^M: bad interpreter: No such file or directory

This error is caused by a windows-like line ending that we use in our execution file instead of unix style ending line.

To resolve this error, use the following command:

sed -i 's/\r//' file_name