command-line calculator?
Parv
parv at pair.com
Fri Jun 25 11:33:33 PDT 2004
in message <36fb6de804062508417917d0b8 at 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
--
More information about the freebsd-questions
mailing list