Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: OT:korn shell and arithmetic

Re: OT:korn shell and arithmetic

From: Mladen Gogala <mladen_at_wangtrading.com>
Date: Tue, 22 Jun 2004 13:28:55 -0400
Message-ID: <20040622172855.GA2775@mladen.wangtrading.com>

On 06/22/2004 01:06:03 PM, ryan.gaffuri_at_comcast.net wrote:
> I don't know any unix listservs... so I hope this is ok.
>
> I am trying to do the following:
>
> if [ 1.2 -gt 1.0 ]; then
> echo yes
> else echo no
> fi
>
> It alwys comes out no? Anyway to get around this?

Yogi> cat /tmp/ttt
#!/bin/ksh                                                                                 

if [ 1.2 > 1.0 ]; then

   echo "yes"
else echo "no"
fi
Yogi> /tmp/ttt
yes
Yogi>

Try reading the fine manual. Below is the best manual around.         

	Learning the Korn Shell
	By Bill Rosenblatt and Arnold Robbins



-- 
Mladen Gogala
Oracle DBA



Note:
This message is for the named person's use only.  It may contain confidential, proprietary or legally privileged information.  No confidentiality or privilege is waived or lost by any mistransmission.  If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender.  You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks.
Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity.

----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request_at_freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Tue Jun 22 2004 - 12:26:01 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US