How to format the date in korn shell script to DD-MON-YYYY?

Posted by AieshaDot on Stack Overflow See other posts from Stack Overflow or by AieshaDot
Published on 2009-11-04T22:55:24Z Indexed on 2010/04/25 6:13 UTC
Read the original article Hit count: 220

Filed under:
|
|
|

How do I format a date in a korn shell script to DD-MON-YYYY?

I have tried the following:

date '+%d-%h-%Y'

It returns 04-Nov-2009 I need for the Nov to be NOV (all caps). Can this be done with the date utility?

© Stack Overflow or respective owner

Related posts about shell

Related posts about ksh