On Mon, 24 Feb 2014 16:06:08 -0700 Jeffrey S. Haemer wrote: > My solution was to change it to 10#$(date +%W) > > Is there a better solution? $ echo "$(date +%-W)" 8 The - tells it do not zero pad.