windows编辑sh,在linux提示格式不正确

windows编辑的sh脚本,直接拷贝到 linux 上运行,可能会提示脚本格式不正确,解决步骤:

1. 在 Linux 上安装 dos2unix

2. 执行命令:dos2unix 文件全名

posted @ 2020-12-18 11:29  孙延坤  阅读(167)  评论(0编辑  收藏  举报