【Linux】windows下编写的脚本文件,放到Linux中无法识别格式

注意:我启动的时候遇到脚本错误

» sh startup.sh -m standalone                                                             tanghuang@bogon
: command not found
: command not found
: command not found:
'tartup.sh: line 19: syntax error near unexpected token `in
'tartup.sh: line 19: `case `uname` in
复制代码

这是因为在windows下编写的脚本文件,放到Linux中无法识别格式

解决方法: 用vi打开脚本文件,在命令模式下输入

set ff=unix
原文地址:https://www.cnblogs.com/itplay/p/11038473.html