quick ksh script date issue

From: Laurence Moughan (Laurence.Moughan@aerlingus.com)
Date: Wed Aug 03 2005 - 05:07:15 EDT


Hi All,

Quickie

why does first strip leading zeros off my date string with the sed yet
second does not ?

obebim1:/root # print $(date "+%Y %m %d") |sed 's/ 0/ /g'
2005 8 3

obebim1:/root # print $(date "+%H") |sed 's/ 0/ /g'

09 < - i just want 9

I just want to get the single digit numerical hour from date rather
than 01 02 03 etc... when in early hous

Cheers

laurence

..For low fares and great deals on hotels, car hire and travel insurance visit http://www.aerlingus.com
of any action in reliance upon, this information by persons or entities
other than the intended recipient is prohibited.If you have received
this email in error please notify the sender immediately and delete
the material.
*******************************************************************************
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:31:14 EDT