Just now learning bash, using my own Windows computer (since the HP Ubuntu one has been returned). Can’t run the newly written bash script!
line 3: $‘\r’: command not found
Write this sentence to terminal, then run it:
sed -i 's/\r//' yxy_learn_bash2.sh

Windows运行Bash脚本遇问题
博主刚学习bash,用自己的Windows电脑运行新写的bash脚本时遇到问题,提示‘line 3: $‘\\r’: command not found’,并打算将某句话写入终端后运行。

被折叠的 条评论
为什么被折叠?



