shell script being given $ '\ r': command not found

Individual shell script to perform the test run being given $ '\ r': command not found

Taking into account may be different windows and Linux line breaks reasons (windows is \ r \ n, Linux is \ n) caused, but they do not want to replace one by one.

You can use the following command to solve:

# Vi screenplay name

Enter the command line mode:

:set ff=unix

: Wq to exit

Guess you like

Origin www.cnblogs.com/abclife/p/12604441.html