执行Shell脚本报错:/bin/bash^M: bad interpreter 解决方法
📝
内容提要
执行Shell脚本提示:/bin/bash^M: bad interpreter: No such file or directory...这个问题是由于在 Windows 系统中创建或编辑的 shell 脚本文件,在行尾使用了 Windows 风格的换行符(CRLF,即回车+换行),而非 Unix 风格的换行符(LF,即换行)。当您在 Unix 或 Linux...
🏷️