当前位置: 首页 > linux教程 >

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

-bash: ./test.sh: /bin/sh^M: bad interpreter: No such file or directory
解决办法:$ sed -i 's/\r$//' test.sh
 
------分隔线----------------------------
  • 收藏
  • 挑错
  • 推荐
  • 打印