使用shell快速建立上万个文件夹

#!/bin/bash
#!This is a shell script to finish the folders tasks.
rm -rf /home/cpay/zyc/file
mkdir /home/cpay/zyc/file
cd /home/cpay/zyc/file
echo 'The current path is :';pwd
echo '********'
a=30000
while [ $a -gt 0 ]
do
echo '--'
#echo $a
mkdir $a
let a--
#a = $a-1
done
echo '30000 filefolders created successfully'
ls -lR|grep "^d"|wc -l

上一篇:Android SlidingMenu 使用详解


下一篇:iOS开发之系统通讯录