[lug] Remember Y2K?

Jed S. Baer blug at jbaer.cotse.net
Mon Feb 24 16:16:05 MST 2014


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.


More information about the LUG mailing list