Re: [OT] last day of a month
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. Otherwise, your question would be best asked somewhere else. Regards, Randy. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response
RE: [OT] last day of a month
-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 with perl, use the DateTime module. Otherwise, your question would be best asked somewhere else. 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 scripting and hoped someone could help me. Unfortunately I can not use a Perl solution, it's a requirement :-) Any idea is welcome. José. DISCLAIMER This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. For further information about Proximus mobile phone services please see our website at http://www.proximus.be or refer to any Proximus agent. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response
RE: [OT] last day of a month
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 can not use a Perl solution, it's a requirement :-) Any idea is welcome. I'm puzzled why you would ask this in a Perl group when there are shell groups who would be expected to know the answers to shell questions... and certainly wouldn't accuse you of being off-topic. A 5-second search gave me the newsgroup comp.unix.shell. I highly recommend Google for such discoveries, it is worth knowing how to use it. So my idea is to ask in comp.unix.shell. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response
RE: [OT] last day of a month
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
RE: [OT] last day of a month
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] http://learn.perl.org/ http://learn.perl.org/first-response