Rootop 服务器运维与web架构

通过shell创建多个文件夹

| 暂无评论

#while实现


#! /bin/bash
i=1
while [ $i -le 50 ]
do
if [ -d /tmp/test ];then 
mkdir /tmp/test/$i
i=$(($i+1))
else
mkdir /tmp/test
mkdir /temp/$i 
i=$(($i+1))
fi
done

原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/2001.html

作者:Venus

服务器运维与性能优化

发表回复