执行sh文件遇到的问题

1、/bin/bash^M 坏的解释器:没有那个文件或目录

执行如下命令可解决:

sed -i 's/\r$//' your_script.sh
posted @ 2023-05-24 16:49  Dyaqi  阅读(63)  评论(0编辑  收藏  举报