解決shell指令碼錯誤$’r’ command not found
從windows上傳了一個
到
上執行 出現如下錯誤:$'\r': command not found
這是windows與Unix文字編輯的預設格式不同造成的,需要轉成unix格式。
解決方法
[root@localhost ~]# yum install -y Example.sh [root@localhost ~]# dos2unix Example.sh dos2unix: converting file Example.sh to Unix format ...
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31559985/viewspace-2649479/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- shell指令碼執行錯誤 $‘\r‘:command not found指令碼
- 執行 shell 指令碼 \r 問題解決指令碼
- bash: lspci: command not found解決方法
- -bash: XXX: command not found解決辦法
- 解決 The ‘supervisor==3.2.0‘ distribution was not found and is required by the application錯誤UIAPP
- 解決bash: mysql: command not found的問題MySql
- Mac終端出現 brew command not found 解決Mac
- zabbix_get :command not found 解決辦法
- Linux提示crontab command not found的解決方法Linux
- 【linux報錯】-bash: xhost: command not foundLinux
- shell指令碼報錯:[: missing `]‘指令碼
- “command-not-found has crashed” 解決辦法 (*unsolved)
- -bash: id: command not found -bash: tty: command not found
- CentOS 已安裝virtualenv, 但還是報錯誤 bash: virtualenv: command not foundCentOS
- 解決 biolinux-conda command not found 2018-05-04Linux
- CentOS 7 命令 lsb_release: command not found 解決方案CentOS
- python virtualenv報錯-bash: virtualenv: command not foundPython
- RestCloud ETL解決shell指令碼引數化RESTCloud指令碼
- 總結一篇shell除錯技巧及常見的指令碼錯誤除錯指令碼
- Mac之telnet報錯-bash: telnet: command not foundMac
- 批次解壓shell指令碼指令碼
- Windows下make clean指令錯誤[錯誤碼2](系統找不到指定檔案)的解決方案Windows
- command 'gcc' failed with exit status 1錯誤問題的解決辦法GCAI
- nodemon: command not found
- pip: command not found
- test.sh: line 3: $‘\r‘: command not found 或者 vim去掉^M字元字元
- windows10,homestead啟動時,VERR_INTNET_FLT_IF_NOT_FOUND 錯誤解決Windows
- zsh:command not found: xxx
- mac mysql: command not foundMacMySql
- shell指令碼指令碼
- PHP-fpm Linux 環境使用 exec 函式呼叫 FFmpeg,報錯 FFmpeg: command not found 的解決方法PHPLinux函式
- Ocelot錯誤解決
- 小程式錯誤:Component is not found in path
- 阿里雲伺服器Centos映象解決方案apt-get: command not found阿里伺服器CentOSapt-get
- 報錯(已解決)Command timed out after no timeout
- Linux:-bash: tree: command not foundLinux
- Linux:-bash: unzip: command not foundLinux
- Mac -bash: mysql: command not foundMacMySql