noLeadingZeroHr=$(echo $fhr | sed 's/^0*//') if [ $noLeadingZeroHr -lt 100 ]; then pint=`echo $fhr | cut -c2-3` else pint=$fhr fi