One, Linux under compile make file error "/bin/bash^m: Bad Interpreter
Reference article: Http://blog.csdn.net/liuqiyao_01/article/details/41542101#comments
The results of your own tests:
"1" Creates a new file using the editing tools under Windows doc2unix.sh
#!/usr/bin/env bash# testpid=$ (PSgrep grep grep-grep Master | awk ' {print $} ' )echo $PID
Use cat-v under Linux to view
The red part is the basis of the problem.
"2" Using Linux tools Doc2unix Convert to continue test, the effect of the conversion
2. Use grep to quickly locate the code location
Reference article: http://blog.csdn.net/diaoxuesong/article/details/44104781
Directly, search for linux-share content in the /mnt/hgfs/linux-share/lua/lua_project_v0.01/bin/ directory:
Parameter description:
N-Travel number
R-Traverse
E-Use regular expressions
Linux compile make file error "/bin/bash^m: Bad interpreter, use grep to quickly locate code location