How to handle numeric variables in sh?

Jon Drews jon.drews at gmail.com
Sat Feb 19 16:33:12 GMT 2005


Ale:


On Sat, 19 Feb 2005 12:55:59 -0300, Alejandro Pulver
<alejandro at 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/


More information about the freebsd-questions mailing list