Simply trying to set a variable that is the last day of the month (and it's day) on both hpux and linux platforms. so, for DEC 2010 the last day = 31 and it is a FRIDAY (I need both values). Any suggestions?
# get day of the week:
http://www.computing.net/answers/un...
http://www.computing.net/answers/un...# first and last day of the month:
http://www.computing.net/answers/un...# last day of the month:
http://www.computing.net/answers/li...
Last day of the current month: #!/bin/ksh
typeset -R2 LastDay=$(cal);print $LastDay
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |