[Ilugc] .a-tip-a-day. (bc - interactive calculator)

  • From: girishvenkatachalam@xxxxxxxxx (Girish Venkatachalam)
  • Date: Wed Sep 23 05:54:56 2009

$ bc
4*40
160

You keep calculating till you press Ctrl-D.

You can do the same thing with lua or python. With lua you have to
prefix with a '=' as it is an
 alias for print.

I normally use lua nowadays.

Then you have dc(1) which is quirky.

You also have graphical utilities but they are boring.

Some tips:

Modulo operator : %
exponentiation: ^ or **

All other operators must be familiar.

-Girish

-- 
Gayatri Hitech
web: http://gayatri-hitech.com

SpamCheetah Spam filter:
http://spam-cheetah.com

Other related posts: