好吧,所以我不太擅长 .sh 和 .bat 脚本,但我需要将 .bat 文件翻译成 .sh 并希望我能在这里得到一些帮助。
文件名为 booyaka.sh
#!/bin/sh
:START
REM what to put below:
REM perl m2auto.pl user pass wait chartype "Lord Stealer"
REM wait = 0.0 for most
REM chartype: 1 = agimage, 2 = fighter, 3 = mage, 4 = Pure Fighter
REM stealer must have full name
perl m3.pl user password 0.0 1 "Stealer"
perl -e sleep(2)
goto START
这就是我的脚本目前的样子,但由于某种原因,当我在终端中尝试 ./booyaka.sh 时,它返回以下内容:bash: ./booyaka.sh: No such file or directory
如果我在存储文件的目录中导航并尝试从那里执行它会返回:bash: ./booyaka.sh: /bin/sh^M: bad interpreter: No such file or directory
关于我做错了什么的任何见解?