RE: [OT] last day of a month

2004-04-06 Thread Bob Showalter
Bob Showalter wrote: > set `cal 12 2004` && eval echo \${$#} here's a simpler one that doesn't zap your parameters: : $(cal 12 2004) && echo $_ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [OT] last day of a month

2004-04-06 Thread Bob Showalter
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

RE: [OT] last day of a month

2004-04-06 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Nyimi Jose) writes: >I know that my question is off-topic that's why my subject starts whith the > [OT] flag. >I thought that a lot of people using Perl are also familiar with unix scrip >ting and hoped >someone could help me. >Unfortunately I ca

RE: [OT] last day of a month

2004-04-06 Thread NYIMI Jose (BMB)
> -Original Message- > From: Randy W. Sims [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 06, 2004 10:14 AM > To: NYIMI Jose (BMB) > Cc: [EMAIL PROTECTED] > Subject: Re: [OT] last day of a month > > Your question is off-topic. If you want to know how to do it

Re: [OT] last day of a month

2004-04-06 Thread Randy W. Sims
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 ? Your question is off-topic. If you want to know how to do it with perl, use the DateTime module. Otherw