Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Feb 2005 09:33:11 -0700
From:      Jon Drews <jon.drews@gmail.com>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: How to handle numeric variables in sh?
Message-ID:  <8cb27cbf050219083335c55752@mail.gmail.com>
In-Reply-To: <20050219125559.3bb98715@ale.varnet.bsd>
References:  <20050219125559.3bb98715@ale.varnet.bsd>

next in thread | previous in thread | raw e-mail | index | archive | help
Ale:


On Sat, 19 Feb 2005 12:55:59 -0300, Alejandro Pulver
<alejandro@varnet.biz> wrote:
> Hello,
> 
> Is there a way to handle numeric variables (addition, multiplication, etc.) in 'sh' (or throught an external command)?

Here is a good short "HowTo" on calling bc:
-----------------------------------------------------------------
>> Shell Tip: Calculating with large numbers using "bc"
-----------------------------------------------------------------
http://www.shelldorado.com/newsletter/issues/2002-3-Aug.html

Shelldorado is a great reference site:

http://www.shelldorado.com/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8cb27cbf050219083335c55752>