#!/bin/bash A=$1 B=$2 C=$3 RESULT=`echo "$B*($C/$A)" | bc -l` echo $RESULT