First page Back Continue Last page Overview Graphics
Example 4-5
insn.tree_1.bash
mkdir INSN_DATA
cd INSN_DATA
cat ../insn.stn |while
read station
do
echo $station
mkdir $station
cd $station
# $1 and $2 are input parameter given by user in command line
for year in `seq $1 $2`
do
mkdir $year
cd $year
for month in 01 02 03 04 05 06 07 08 09 10 11 12
do
mkdir $month
done
cd ..
done
cd ..
done
cd ..