[原创—shell脚本第一次发布在http://accepting.sharera.com空间上]
#!/bin/bash
for file in a b c d e f g h i j k r l m n o p q l s t y u v w x z
do
mkdir /var/spool/mail/$file
for file in a b c d e f g h i j k r l m n o p q l s t y u v w x z
do
cd /var/spool/mail/$file
for file in a b c d e f g h i j k r l m n o p q l s t y u v w x z
do
mkdir $file
done
cd ..
done
done
注:这是我为了创建哈希二级目录写的脚本,高手不要见笑!!!