This error is caused by the different coding of windows system and Linux system. The carriage return in windows is
Solution: add - B code>, that is,
VIM - B file name code>, when editing the script file with VIM, so that the open file is "binary mode", you can see the extra things, and the display is
^ m code>, delete it, save it and run it.