sh运行时报错,

syntax error near unexpected token `$’do\r”

在notepad++中,在编辑

sh运行时报错,syntax error near unexpected token `$’do\r”

转换成unix格式,就可以了。

因为windows的格式是这样的,在执行时会报错。

sh运行时报错,syntax error near unexpected token `$’do\r”

转换后:执行就正确了。

sh运行时报错,syntax error near unexpected token `$’do\r”

相关文章:

  • 2021-07-02
  • 2021-12-24
  • 2021-12-31
  • 2021-05-01
  • 2021-11-06
  • 2021-04-13
  • 2021-08-12
  • 2021-07-20
猜你喜欢
  • 2021-05-30
  • 2021-07-31
  • 2021-08-30
  • 2021-11-28
  • 2021-09-26
  • 2021-07-09
  • 2021-04-01
相关资源
相似解决方案