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.
Read More:
- When executing shell script, $’r ‘: command not found appears
- Error BC: command not found when git bash runs shell script
- Shell script running error bash: JPS: command not found
- Solution to shell script error “expr: syntax error”
- Linux basic command execution error: the solution of command not found
- Shell script execution error: “syntax error near unexpected token”
- On the error report after the command of ADB shell error:device not A solution of found
- Solution to shell script invocation error during Xcode real machine test
- Several methods of executing multiple commands in Linux shell
- $‘\r‘: command not found
- Alpine Linux executable file crash report error / lib / x86 not found_ 64 Linux GNU / libc.so solution
- Shell script syntax error near unexpected token ‘$’Do
- launch failed.Binary Not found in Linux / Ubuntu solution
- Prompt when executing sh file in Linux: nohup: unable to run command “. / startup. Sh”: insufficient permissions
- Linux remote copy command and not a regular file solution
- In Linux shell script, about the commonly used flag [- EQ, GT..] in test and if judgment
- Solve the problem of shell script “syntax error near unexpected token `fi'”.
- Mac command not found solution
- An undetermined call to function ‘shell’: missing ‘. Stop. Problem encountered when using shell command in makefile
- [solved] – bash: rabbitmq plugins: command not found or RA bbitmqctl:command not found