Another question. how do I get the modulo/remainder.

ex:

a=8
b=3

c=$a mod $b

echo $c

thanks


On Monday 19 July 2004 09:50, alben benavente alteza wrote:
> in a bash script, how do we add two numbers like:
>
> a=1
> b=2
>
> c=$a+$b
>
> echo $c
>
> my script is treating the numbers as string.
>
> thanks

-- 
Alben Benavente Alteza 
Information Systems Security and Internet Services Administration
Information Systems Department / Philippine Airlines 

--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to