Computing.Net > Forums > Unix > reformatting the month of year

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

reformatting the month of year

Reply to Message Icon

Name: Ou Huang
Date: January 16, 2003 at 12:58:47 Pacific
OS: AIX
CPU/Ram: not sure
Comment:

I'd like to reformatting the month of year in Decimmal number to the locale's abbreviated month name.
For example: 10 >> Oct. 1 >> Jan. etc.

Is there such a unix command can do that?

Thanks!




Sponsored Link
Ads by Google

Response Number 1
Name: James Boothe
Date: January 16, 2003 at 15:39:47 Pacific
Reply:

set -A mon 0 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
mm=5
print ${mon[$mm]}
print ${mon[11]}


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: reformatting the month of year

AWK Question www.computing.net/answers/unix/awk-question/4512.html

Find the day of week using AWK www.computing.net/answers/unix/find-the-day-of-week-using-awk/5243.html

How to find week no. of the month? www.computing.net/answers/unix/how-to-find-week-no-of-the-month/5792.html