From owner-freebsd-questions@FreeBSD.ORG Sat Jun 26 08:25:46 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D87A16A4CE for ; Sat, 26 Jun 2004 08:25:46 +0000 (GMT) Received: from web21102.mail.yahoo.com (web21102.mail.yahoo.com [216.136.227.104]) by mx1.FreeBSD.org (Postfix) with SMTP id 7F47443D41 for ; Sat, 26 Jun 2004 08:25:46 +0000 (GMT) (envelope-from materribile@yahoo.com) Message-ID: <20040626082512.68143.qmail@web21102.mail.yahoo.com> Received: from [24.228.74.10] by web21102.mail.yahoo.com via HTTP; Sat, 26 Jun 2004 01:25:12 PDT Date: Sat, 26 Jun 2004 01:25:12 -0700 (PDT) From: Mark Terribile To: freebsd-questions@freebsd.org In-Reply-To: <20040625212334.2FF0316A4EC@hub.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: command-line calculator? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jun 2004 08:25:46 -0000 > > 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