问题?

执行 shell 错误

错误
syntax error near unexpected token `}'

查看字符编码格式

# cat -v test.sh

空格部分 显示的都是 一些

...
M-BM- M-BM-
M-BM- M-BM-
M-BM- M-BM-
...

更改替换为十六进制格式 

# sed -i 's/\xc2\xa0//g' test.sh

再重新查看就没了 

# cat -v test.sh

再执行就好了 

相关文章:

  • 2021-07-23
  • 2021-04-11
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2021-04-05
  • 2021-10-25
猜你喜欢
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2021-05-07
  • 2022-12-23
  • 2021-10-28
相关资源
相似解决方案