JavaShuo
欄目
標籤
運行腳本:syntax error near unexpected token `$'{\r'
時間 2020-12-26
標籤
Linux
欄目
Linux
简体版
原文
原文鏈接
1、原因:腳本是在Windows下寫的,Windows和Linux的換行符號不同,所以在Linux中執行腳本的時候報錯。 2、查看:使用notepad++打開腳本,視圖→ 顯示符號→ 顯示所有字符,如圖所示,換行符是 CR LF, 但是Linux的是LF。 3、解決:在notepad++ 中,編輯→文檔格式轉換→轉爲Unix格式,然後再去Linux中運行腳本,就可以了。notepad++應該是大多
>>阅读原文<<
相關文章
1.
運行腳本:syntax error near unexpected token `$'{\r'
2.
腳本報錯:syntax error near unexpected token
3.
shell腳本報錯換行符syntax error near unexpected token \r
4.
[Bash]syntax error near unexpected token 'then'
5.
syntax error near unexpected token shell
6.
寫shell,運行出錯:syntax error near unexpected token `$’do\r」
7.
Shell腳本執行報錯:「syntax error near unexpected token 」
8.
linux shell腳本無法執行,報錯syntax error near unexpected token `$'\r''解決方法
9.
syntax error near unexpected token 腳本報錯誤解決
10.
syntax error near unexpected token `in解決方案
更多相關文章...
•
Swift 下標腳本
-
Swift 教程
•
Eclipse 運行程序
-
Eclipse 教程
•
RxJava操作符(五)Error Handling
•
Kotlin學習(二)基本類型
相關標籤/搜索
syntax
unexpected
token
error
腳本
行腳
運行
本行
r&r
Linux
R 語言教程
PHP 7 新特性
PHP教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
融合阿里雲,牛客助您找到心儀好工作
2.
解決jdbc(jdbctemplate)在測試類時不報錯在TomCatb部署後報錯
3.
解決PyCharm GoLand IntelliJ 等 JetBrains 系列 IDE無法輸入中文
4.
vue+ant design中關於圖片請求不顯示的問題。
5.
insufficient memory && Native memory allocation (malloc) failed
6.
解決IDEA用Maven創建的Web工程不能創建Java Class文件的問題
7.
[已解決] Error: Cannot download ‘https://start.spring.io/starter.zip?
8.
在idea讓java文件夾正常使用
9.
Eclipse啓動提示「subversive connector discovery」
10.
帥某-技巧-快速轉帖博主文章(article_content)
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
1.
運行腳本:syntax error near unexpected token `$'{\r'
2.
腳本報錯:syntax error near unexpected token
3.
shell腳本報錯換行符syntax error near unexpected token \r
4.
[Bash]syntax error near unexpected token 'then'
5.
syntax error near unexpected token shell
6.
寫shell,運行出錯:syntax error near unexpected token `$’do\r」
7.
Shell腳本執行報錯:「syntax error near unexpected token 」
8.
linux shell腳本無法執行,報錯syntax error near unexpected token `$'\r''解決方法
9.
syntax error near unexpected token 腳本報錯誤解決
10.
syntax error near unexpected token `in解決方案
>>更多相關文章<<