year="2004 2005 2008"
month="01 02 03 04 05 06 07 08 09 10 11 12"
dates="01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31"
hour="00 03 06 09 12 15 18 21"
#month="01"
#year="2001"
#dates="01"
#hour="03"
for yyyy in $year ; do
yy=${yyyy:2:2}
echo $yy
for mm in $month ; do
  mkdir -p $yyyy$mm
  for dd in $dates ; do
  for hh in $hour ; do
multiget -l ftp://disc2.nascom.nasa.gov/data/TRMM/Gridded/3B42_V7/${yyyy}${mm}/3B42.${yy}${mm}${dd}.${hh}z.7.precipitation.bin
mv 3B42.${yy}${mm}${dd}.${hh}z.7.precipitation.bin $yyyy$mm
  done
  done
done
done

