#!/bin/bash read row input=($row) a=${input[0]} b=${input[1]} c=${input[2]} if [ $((a*c)) -gt ${b} ]; then echo ${b} else echo $((a*c)) fi