On Fri, 2004-06-25 at 11:41, 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?
calc
It's in ports and easier than anything else I've seen
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
What simple built-in command-line tools are available if I want to
just do some simple math on the command line?
man bc
- Barry
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send
CD Baby [EMAIL PROTECTED] writes:
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?
echo 17 * 36 | bc
norbert.
___
On Fri, 25 Jun 2004 08:41:02 -0700, CD Baby [EMAIL PROTECTED] wrote:
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
man expr
man bc
On Fri, 25 Jun 2004 08:41:02 -0700, CD Baby [EMAIL PROTECTED] 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?
in message [EMAIL PROTECTED],
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
On Fri, 25 Jun 2004, Parv wrote:
Perl:
perl -e 'print +(17 * 36)'
Or just
perl -e 'print 17 * 36'
but for neatness
perl -e 'print 17 * 36, \n'
-Warren Block * Rapid City, South Dakota USA
___
[EMAIL PROTECTED] mailing list
in message [EMAIL PROTECTED],
wrote Parv thusly...
Perl:
perl -e 'print +(17 * 36)'
awk:
echo |awk '{print 17 * 36}'
Oh, in Rexx...
echo 'say 17 * 36 ' | rexx
...or...
rexx # Interpreter
say 17 * 36
^D # Ctrl-D
Just wondering out loud ... Is it not possible
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,
On Fri, Jun 25, 2004 at 01:31:33PM -0600,
Warren Block probably wrote:
On Fri, 25 Jun 2004, Parv wrote:
Perl:
perl -e 'print +(17 * 36)'
Or just
perl -e 'print 17 * 36'
but for neatness
perl -e 'print 17 * 36, \n'
Or just
$ sh -c 'echo $((17*36))'
612
or
$ echo
11 matches
Mail list logo