检查shell脚本中是否存在目录在shell脚本中,可以使用什么命令来检查目录是否存在?
3 回答
一只斗牛犬
TA贡献1784条经验 获得超2个赞
$DIRECTORY
"My M0viez"
if [ -d "$DIRECTORY" ]; then # Will enter here if $DIRECTORY exists, even if it contains spacesfi
添加回答
举报
0/150
提交
取消