标签:
1 #!/bin/bash 2 if [ -d DirName ]; then 3 echo ‘Dir exist‘ 4 else 5 echo ‘Dir not exist‘ 6 fi
Bash判断文件夹(目录)是否存在
原文地址:http://www.cnblogs.com/imzye/p/5059031.html