linux shell file execution

Always being given the time of execution

install software:

yum install dos2unix

chmod +x test.sh

dos2unix test.sh

 

Such files do not execute sh reported about an exception, mainly because the windows in the wrap and linux is not the same.

Guess you like

Origin www.cnblogs.com/hcfan/p/11454822.html