摘要:
shell判断文件,目录是否存在或者具有权限2008-09-01 16:23#!/bin/sh myPath="/var/log/httpd/" myFile="/var /log/httpd/access.log" #这里的-x 参数判断$myPath是否存在并且是否具有可执行权限 if [ ! -x "$myPath"]; then mkdir "$myPath" fi #这里的-d 参数判断$myPath是否存在 if [ ! -d "$myPath"]; then mkdir " 阅读全文
posted @ 2012-07-25 16:29
路人浅笑
阅读(717)
评论(0)
推荐(0)

浙公网安备 33010602011771号