时间:2022-09-17 09:33:51
这是不同系统编码格式引起的:在windows系统中编辑的.sh文件可能有不可见字符,所以在Linux系统下运行会报以上异常信息。
解决办法
sed -i "s/\r//" test.sh
shell脚本报错问题: -bash: ./test.sh: /bin/sh^M: bad interpreter: No such file or directory
2020-07-25
Linux中执行bash脚本报错/bin/bash^M: bad interpreter: No such file or directory
2022-08-23
Linux下执行.sh命令出现-bash: ./bin/start.sh: /bin/bash^M: bad interpreter: No such file or directory...
2019-05-07
sh脚本异常:bad interpreter: No such file or directory
2023-02-20
初步了解m>linuxm>系统目录 m>binm> boot dev etc!
m>Linuxm>——m>Shm>ell脚本的应用1(基础)
Oh God you created such a beautiful woman m>shm>e is the goddess of m
写作指导 Some items such as clothes or furniture can be made by hand or by machine. Which do you prefer
天天英语|There is no man so bad but he secretly……
穿越梦境:高一叙事作文700字
2024-04-30
家里的院子作文700字
前进与后退作文700字
春色点亮生命的旅程:700字展现春天的美好
我不再孤单:探寻700字作文素材的归宿
2022-10-06
小物件作文初中700字
2023-05-18