Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jun 2004 14:34:29 -0400
From:      Parv <parv@pair.com>
To:        CD Baby <cdbaby@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: command-line calculator?
Message-ID:  <20040625183429.GA10616@moo.holy.cow>
In-Reply-To: <36fb6de804062508417917d0b8@mail.gmail.com>
References:  <36fb6de804062508417917d0b8@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
in message <36fb6de804062508417917d0b8@mail.gmail.com>,
wrote CD Baby thusly...
>
> 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?

In addition to [bd]c(1) ...

  Perl:
    perl -e 'print +(17 * 36)'

  awk:
    echo |awk '{print 17 * 36}'


  - Parv

-- 



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