编写一个shell脚本实现: 判断用户家目录下(~)下面有没有一个叫test的文件夹

日期:2021-07-03 06:40:40 人气:1

编写一个shell脚本实现: 判断用户家目录下(~)下面有没有一个叫test的文件夹

#!/bin/bash
cd ~
dir="test"
if [ -d "$dir" ];then
    num=0
    while (($num < 3));do
  
    A+
热门评论