#!/bin/bash a=$1 b=$2 result=$(($a**$b)) echo "$1^$2=$result" # power.sh 2 3 # 2^3=8 # power.sh 3 2 # 3^2=9 # power.sh 5 2 # 5^2=25