Soy丶sauce

关注

运行shell脚本

Soy丶sauce

关注

阅读 154

2022-04-02


[root@iZ2zehz5b1m03ahtrhebcaZ bin]# ./start.sh 
./start.sh: line 2: $'\r': command not found
./start.sh: line 3: $'\r': command not found
./start.sh: line 5: syntax error near unexpected token `$'do\r''
'/start.sh: line 5: `do

错误很明显,无法解析这个东西,

​

我的办法:打开shell脚本,标点符号重新输入,(注意:尤其是复制的)


相关推荐

小迁不秃头

Linux运行shell脚本

小迁不秃头 45 0 0

Star英

shell 防止脚本重复运行

Star英 80 0 0

凯约

shell脚本的运行方式

凯约 9 0 0

扒皮狼

Shell脚本_统计当前shell脚本已经运行了几分几秒

扒皮狼 68 0 0

陆公子521

Shell 入门教程(四):如何运行shell脚本

陆公子521 91 0 0

花姐的职场人生

Linux Bash Shell学习(七):shell编程基础——运行Shell脚本、function

花姐的职场人生 42 0 0

芥子书屋

【shell】shell脚本实战-shell脚本函数详解

芥子书屋 115 0 0

janedaring

shell:startup 如何实现开机启动运行node脚本

janedaring 9 0 0

爱薇Ivy趣闻

linux定时运行命令脚本shell——crontab配置

爱薇Ivy趣闻 91 0 0

小安子啊

shell脚本系列:9、shell脚本

小安子啊 238 0 0

精彩评论(0)

0 0 举报