摘要: shell判断文件,目录是否存在或者具有权限#!/bin/sh myPath="/var/log/httpd/" myFile="/var /log/httpd/access.log" #这里的-x 参数判断$myPath是否存在并且是否具有可执行权限 if [ ! -x "$myP... 阅读全文
posted @ 2014-10-13 09:55 普兒 阅读(122739) 评论(1) 推荐(2)