I am extracting information from a text file specifically "FEW080"
However, when running my script this is the error I receive Value too Great for Base (error token is "080" Since there is a leading zero I am assuming it is taking it as octal but I want to suppress any leading zeros
fewClouds=$( egrep -o '\sFEW[0-9]{3}\s' metar.txt | cut -c5-7 )
if [ -n "$fewClouds" ]; then
fewClouds=$(($( egrep -o '\sFEW[0-9]{3}\s' metar.txt | cut -c5-7) *100))
printf "\nFew Clouds at %s feet" $fewClouds
fi