[olug] Doing math in /bin/bash

Kevin D. Snodgrass kdsnodgrass at yahoo.com
Sat May 7 15:08:27 UTC 2011


--- On Sat, 5/7/11, Kevin <sharpestmarble at gmail.com> wrote:
> Why involve anything other than
> bash?
> 
> [kevin at hostname ~]$ A=5
> [kevin at hostname ~]$ C=3
> [kevin at hostname ~]$ B=4
> [kevin at hostname ~]$ echo $(($A*$C/$B))
> 3

Because the example I provided was not the real calculation.  It's much more involved... :-)

Kevin D. Snodgrass




More information about the OLUG mailing list