[olug] Doing math in /bin/bash

Kevin D. Snodgrass kdsnodgrass at yahoo.com
Sat May 7 15:06:48 UTC 2011


--- On Sat, 5/7/11, jay swackhamer <reboottheuser at gmail.com> wrote:
> COUNT=`echo "${A} * ${C} / ${B}" | bc`

Yes, I can handle the assignment.  Just couldn't think of a way to get the whole number part only...

Kevin D. Snodgrass




More information about the OLUG mailing list