i am not able to use for loop in shell script with values 01,02,03...
i am trying with code-:

```
m=`(date +"%d-%m-%Y") | awk -F '-' '{print $2}'`
d=`(date +"%d-%m-%Y") | awk -F '-' '{print $1}'`
limit=`expr $d - 2`
for (( i=$m;i>=01;i-=1 ));
do
 for(( j=$limit;j>=01;j-=1 ));
   do
    echo -e "$j-$i-2013"
   done
done

```

my query is that the files are in format 2013-09-01,2013-08-02....but values i get from loop is 1,2,3,4 which does not match with the name of file.
i am getting error-;
actually i have to automate log files on server. i want that script will compress files till present date -2 days.
 compress\_log.sh: line 6: ((: i=09: value too great for base (error token is "09")
also