#!/bin/bash # # convert number ($2) from base ($1) to decimal # echo $(( $1#$2 ))