sublime text 3编写shell脚本执行报$'\r': command not found
2018-03-29 15:23
776 查看
在sublime text 3编写好shell脚本后执行报$'\r': command not found
但是Ctrl+F通过正则表达式搜索发现结尾只有换行符并没有回车符
但是通过notepad打开的确能看到有'\r'
由于默认设置换行符跟随系统,在Windows中换行符是'\r\n',所以在Preferences->Setting->Setting-User中更改配置为"default_line_ending": "unix", // 默认是system改成Unix系统的换行符就好了,在Windows使用也不影响。
但是Ctrl+F通过正则表达式搜索发现结尾只有换行符并没有回车符
但是通过notepad打开的确能看到有'\r'
由于默认设置换行符跟随系统,在Windows中换行符是'\r\n',所以在Preferences->Setting->Setting-User中更改配置为"default_line_ending": "unix", // 默认是system改成Unix系统的换行符就好了,在Windows使用也不影响。
相关文章推荐
- Mac执行shell脚本提示command not found的一种解决方案
- 日常潜水-20160930-Mac执行shell脚本报错_command not found
- shell脚本执行错误 $'\r':command not found
- ubuntu终端执行shell脚本报command not found解决方法
- shell脚本执行错误 $'\r':command not found
- 计划任务里执行包含连接oracle命令的shell脚本报错:SP2-0667: Message file sp1<lang>.msb not found
- ssh执行远程服务器脚本 提示php: command not found
- Linux 开机启动的 执行rc脚本(shell编写)的顺序
- 执行shell脚本中declare: not found
- 运维之shell篇------1. Shell概述 、 编写及执行脚本 、 Shell变量
- linux下执行脚本,提示Command not found解决办法
- shell脚本编写及执行
- 170509、文本编辑器编写的shell脚本在linux下无法执行的解决方法
- shell脚本中的bash错误:$'\r': command not found [caca]
- jenkins远程执行脚本mysql command not found
- CRLF line terminators导致shell脚本报错:command not found
- CRLF line terminators导致shell脚本报错:command not found --转载
- linux 使用文本编辑器编写shell脚本执行权限不够
- shell脚本if语法错误:if[ 20 == 10 ]: command not found
- Notepad++编写的shell脚本在linux下无法执行的解决方法