for i in chl.$1*hdf
do
echo $i
echo ${i:4:4}

gzip $i
tar -rvf chl.m.gsm.${i:4:4}.tar $i.gz

done

tar -tvf chl.m.gsm.${i:4:4}.tar

