linux判断文件是否存在
摘要:#!/bin/sh myPath="/var/log/httpd/" myFile="/var /log/httpd/access.log" # 这里的-x 参数判断$myPath是否存在并且是否具有可执行权限 if [ ! -x "$myPath"]; then mkdir "$myPat...
阅读全文
posted @ 2014-05-18 22:08
posted @ 2014-05-18 22:08
posted @ 2014-05-18 22:07
posted @ 2014-05-18 18:14
posted @ 2014-05-18 17:24
posted @ 2014-05-18 16:38