I have a shell script, which somewhat looks like below:
#!/bin/bash
val1=000000068
val2=68
if [[ 000000068 -eq 68 ]];then
echo "Matched"
else
echo "Unmatched"
fi
But, when executed, it errs out as follows:
sh -x test.sh
- val1=000000068
- val2=68
- [[ 000000068 -eq 68 ]] test.sh: line 6: [[: 000000068: value too great for base (error token is "000000068")
- echo Unmatched Unmatched
Can someone help?