shell脚本在cygwin下运行报错: $'\r': command not found
来源:互联网 发布:linux nas 解决方案 编辑:程序博客网 时间:2024/06/04 18:49
在cygwin 下运行shell脚本,出现“$'\r': command not found”,这是win dos与Unix文本编辑方式不同造成的。可以使用cygwin工具dos2unix将script改为unix格式。
$ dos2unix test.shdos2unix: converting file test.sh to UNIX format ...$ sh test.sh
参见:http://lxs647.iteye.com/blog/2084375
0 0
- shell脚本在cygwin下运行报错: $'\r': command not found
- shell脚本中的bash错误:$'\r': command not found [caca]
- shell脚本执行错误 $'\r':command not found
- cygwin $'\r': command not found问题
- cygwin $'\r': command not found问题
- : $'\r': command not found in Cygwin
- 解决在Windows下Cygwin Command not found的问题
- 执行shell脚本报错 '\357\273\277': command not found 解决办法
- devstack安装heat失败,报错“$'\r': command not found”
- cron sh: casperjs: command not found 在cron php脚本中,通过shell_exec 报错
- cygwin的bash错误:$'/r': command not found [caca]
- cygwin的bash错误:$'\r': command not found
- Cygwin中出现'\r': command not found的解决办法
- shell 脚本 “bc: command not found ” 解决
- cygwin下执行makefile报/bin/sh: svn: command not found
- 运行forever报command not found
- 在linux安装oracle下,报错sqlplus command not found 解决
- cygwin make:command not found
- Unable to execute dex: Multiple dex files define 解决方法
- proguard Missing type parameter
- 如何连接别人电脑上的ORACLE数据库
- 《道德经》是什么?
- MySQL 备份与恢复
- shell脚本在cygwin下运行报错: $'\r': command not found
- 黑马程序员——面向对象及类
- JSP运行原理和九大隐式对象(又称内置对象)的说明
- python 学习013
- hadoop学习--HDFS
- Linux笔记(1)
- 【整理】uclibc,eglibc,glibc之间的区别和联系
- iOS voip 后台保持长连接
- 友元friend总结