M-oM-;M-?#!/bin/bash$ #----------------------------------$ #$ # M-eM-^PM-/M-eM-^JM-(M-hM-^DM-^ZM-fM-^\M-,;$ #$ #----------------------------------$ phpscriptDir=/Data/code/yoho-chat$
会发现时utf-8格式编码的问题
[root@tse ~]# yum install -y dos2unix
#使用dos2unix转换格式
[root@tse ~]# dos2unix tse.sh
shell脚本执行错误:#!/bin/bash: No such file or directory
原文:https://www.cnblogs.com/Sungeek/p/14650284.html