SUMMARY : quick ksh script date issue

From: Laurence Moughan <Laurence.Moughan_at_aerlingus.com>
Date: Wed Aug 03 2005 - 10:15:48 EDT
Sorted,

I had a leading space before the 0 in the sed statement

should have been sed 's/0/ /g'


Thanks to all that replied, ( besides Rafter Rich - you know who you
are ! )




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
Received on Wed Aug 3 10:18:16 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:50 EST