#!/bin/shdir_path="/vol/project/log/test/"for year in {2012..2013}do
#echo "$year"
cd $dir_path mkdir $year for month in {1..12} do
#echo "$month"
month_dir="$dir_path/$year"
cd $month_dir mkdir $month for day in {1..31} do
#echo "$day"
day_dir="$dir_path/$year/$month"
cd $day_dir mkdir $day done
donedoneShell根据年月日创建文件夹
阅读104评论02009-10-01 14:34:44

fffffasdfasdfasdfasdfas;kdfjlaskl;dfjaskl;dfjakls;dfjkal;sfdjlaks;df als;dfj awkls;dfj asl;dfj aslk;dfjaskl;dfjas;ldf
访客评论