Dates in Bash Script
Posted: Tue Mar 08, 2011 12:41 am
I'm finding difficulty in getting the dates in my bash script .
The above code will output 08....but i want only 8 not zero !!! how to do it ?
Till yesterday i was getting it by doing But now i'm not getting a value from it.....Can any one help me ?
Code: Select all
date=`date +"%d"` The above code will output 08....but i want only 8 not zero !!! how to do it ?
Till yesterday i was getting it by doing
Code: Select all
date1=$[date*1]