摘要: #在此加上是不是目录的判断。 if [ "`ls -A $dir`" = "" ]; then echo "$dir is empty" else echo "$dir is not empty" fi #判断文件是否有执行权限 if [ ! -x "$file" ]; then echo "can not be execute." fi # 这里的-d 参数判断$myPath是否存在 ... 阅读全文
posted @ 2016-04-08 14:52 Memset 阅读(987) 评论(0) 推荐(0) 编辑