|

楼主 |
发表于 2010-6-8 09:29:29
|
显示全部楼层
问题找到了,我用sh -x运行脚本后,过程和预想的不符
[root@XH lamp]# sh -x p.sh
+ sed -i 's/^[[:space:]]*\(DirectoryIndex\).*\(index.html.*\)$/\1 index.php \2/g' $'/tmp/httpd.conf\r'
: No such file or directoryconf
$'/tmp/httpd.conf\r' 不明白这里的$'和后面的\r'怎么出来的,我重新手打了一遍就能运行了 |
|