Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Feb 2002 12:07:47 -0500 (EST)
From:      Brett Jackson <brett@bsduser.ca>
To:        questions@freebsd.org
Subject:   using `date` in a script
Message-ID:  <20020207120404.O7616-100000@bsduser.ca>

next in thread | raw e-mail | index | archive | help
Hi,

I am having difficulty passing a variable to date(8) and have it spit out
the data in the date format.

for example:
birthday=19450104

>date -f ccyymmdd $birthday

that is some ugly psuedocode, eh?  Can I even do this?
I have read the manpage to see how to format the current date, but am lost
somewhere when trying the above.

Thanks.

Brett



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020207120404.O7616-100000>