Linux Error: $ '\ r': command not found

Linux is unable to resolve $ ' \ r ' . In fact, this is the difference between windows and linux system caused. 

Because the newline on linux is \ n, and line breaks on the windows to \ r \ n. So the script on linux can not be resolved. 

The generally there are two main approaches: 

approach SET FF. 1 = UNIX
 VI . Hello SH  
### enters the command-line mode of operation the Esc 
###: SET FF = UNIX
 . 1 
2 
. 3 
approaches the dos2unix 2 
the dos2unix Hello. SH  
## # If the message command not found is because you have not installed, install dos2unix plug-ins. 
---------------------  
Author: Will the wind 
Source: CSDN 
Original: HTTPS: // blog.csdn.net/u010416101/article/details/80135293 
Disclaimer: This article is a blogger original article, reproduced, please attach Bowen link!

 

Guess you like

Origin www.cnblogs.com/Stephen-Qin/p/11299785.html