摘要: 分类:Linux/shell2009-05-11 16:051881人阅读评论(0)收藏举报#!/bin/shmyPath="/var/log/httpd/"myFile="/var /log/httpd/access.log"#这里的-x 参数判断$myPath是否存在并且是否具有可执行权限if [ ! -x "$myPath"]; thenmkdir "$myPath"fi#这里的-d 参数判断$myPath是否存在if [ ! -d "$myPath"]; thenmkdir " 阅读全文
posted @ 2013-01-23 13:44 wuxi812 阅读(361) 评论(0) 推荐(0) 编辑