linux sh script exception /bin/sh^M:bad interpreter: No such file or directory
reason : This is caused by a different system encoding formats.
resolve : 1.Conversion at windows
Use UltraEdit or EditPlus
UltraEdit: File-->Conversions-->DOS-->UNIX
EditPlus : Edit-->EOL Conversions-->Convert to UNIX Format
2.Conversion with vi
>vi filename
:set ff or :set fileformat
You can see ...