Date: Sat, 26 Jun 2004 01:25:12 -0700 (PDT) From: Mark Terribile <materribile@yahoo.com> To: freebsd-questions@freebsd.org Subject: command-line calculator? Message-ID: <20040626082512.68143.qmail@web21102.mail.yahoo.com> In-Reply-To: <20040625212334.2FF0316A4EC@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> > What simple built-in command-line tools are available if I want to > > just do some simple math on the command line? > > Here are two possibilities: > > :~> man -k calculator > bc(1) - An arbitrary precision calculator language > dc(1) - an arbitrary precision calculator Even simpler (at least in ksh or bash): echo $((36 * 27)) (Of course, I'm one of those oddballs who not only CAN use dc(1), but likes to.) Mark Terribile __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040626082512.68143.qmail>