Simple Multiplication in terminal

How do you do simple multiplication in the terminal

say something like 50 * 2 and have it return the answer

Message was edited by: Eric Lundquist

iMac Alu 2.0GHz, Mac OS X (10.5.5)

Posted on Aug 11, 2009 9:14 AM

Reply
6 replies

Aug 11, 2009 10:52 AM in response to Eric Lundquist

You could try expr:
<pre style="border: 1px solid #ddd; padding-left: .75ex; padding-top: .25em; padding-bottom: .25em; margin-top: .5em; margin-bottom: .5em; margin-left: 1ex; max-width: 20ex; overflow: auto; font-size: 10px; font-family: Monaco, 'Courier New', Courier, monospace; color: #444; background: #eee; line-height: normal">expr 50 \* 2</pre>

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Simple Multiplication in terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.