centos7安装dos2unix(window7转换linux)

 ./a.out: 行 11: 未预期的符号 `$'{\r'' 附近有语法错误

  考虑到代码是从windows下一直过来的,脚本可能在格式上存在问题

安装:

install dos2unix
操作:
dos2unix **.sh

发布了78 篇原创文章 · 获赞 9 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/heguangsui123/article/details/100042807
今日推荐