I have a problem with numbers 08 and 09. When I get the number of the day of the month (01..04...09...), and I use it inside an if, I receive an error with numbers 08 and 09. How can I solve this error?
The error is [[: 09: value too great for base (error token is "09") I don't get any error with the other numbers.
datelaptop=`date +"%d"`
echo $datelaptop
if [[ $datagfs -eq $datelaptop ]] ; then
#if [[ 09 -eq 09 ]] ; then
Thank you for your help