shell脚本对文件夹进行循环

版权声明:此文章为许诗宇所写,如需转载,请写下转载文章的地址 https://blog.csdn.net/xushiyu1996818/article/details/83147439

利用ls命令

for  folder in `ls -d www??` ; do
 echo ok
echo $folder
done 

猜你喜欢

转载自blog.csdn.net/xushiyu1996818/article/details/83147439
今日推荐