问题:
sbatch: error: Batch script contains DOS line breaks (\r\n)
sbatch: error: instead of expected UNIX line breaks (\n).
该问题通常是由于从一些其他地方复制文本。
比如换行符就会是^M$(用cat -A my.sh看)
解决方法:
dos2unix my.sh
转化成unix格式就可以了。
转化完之后:
sbatch: error: Batch script contains DOS line breaks (\r\n)
sbatch: error: instead of expected UNIX line breaks (\n).
该问题通常是由于从一些其他地方复制文本。
比如换行符就会是^M$(用cat -A my.sh看)
dos2unix my.sh
转化成unix格式就可以了。
转化完之后: