NYIMI Jose (BMB) wrote:
> Hello,
> 
> How to get the last day of a month using a korn shell command ?
> So far I found the following :
> 
> > echo `cal 12 2004` | awk '{print $NF}'
> 
> Do you have alternative ?

I think that one's pretty clever. How about the similar:

  set `cal 12 2004` && eval echo \${$#}

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to