So I\'m pretty lost as I missed a week and am playing catch up, but I\'m to write an awk program to tell the difference, in days, between two dates.
I\'m more or les
I'm sorry. My answer is not about awk, and it is about bash itself. So please don't give a minus for my comment)
echo -e "00000000" | sed -r 's/^[0]*$/0/g' | sed -r 's/^0[0]+//g'
Or perform integer calculations with (( )) notations
echo $((0000))