#!/bin/bash # let "VAR=$1/$2" VAR=$(echo "scale=0; $1*100/$2" | bc) echo "$VAR%" exit 0