Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jun 2004 09:18:32 -0700 (PDT)
From:      Bill Schoolcraft <bill@wiliweld.com>
To:        Aaron <aaron@justaaron.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: command-line calculator?
Message-ID:  <20040625091653.J23771@bsd.billschoolcraft.com>
In-Reply-To: <40DC491D.9080502@justaaron.com>
References:  <36fb6de804062508417917d0b8@mail.gmail.com> <40DC491D.9080502@justaaron.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At Fri, 25 Jun 2004 it looks like Aaron composed:

> CD Baby wrote:
> > What simple built-in command-line tools are available if I want to
> > just do some simple math on the command line?
> >
> > If I'm there in a shell, and need to know what 17 times 36 equals?
>
> $ bc
> bc 1.06
> Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
> This is free software with ABSOLUTELY NO WARRANTY.
> For details type `warranty'.
> 17*36
> 612
> ^D

I usually try this.....

	echo 17*36 | bc

Then you don't have to start and stop bc.


--
Bill Schoolcraft
PO Box 210076                 -o)
San Francisco CA 94121         /\
"UNIX, A Way Of Life."        _\_v

http://billschoolcraft.com



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