I want to do mathematical operations on eval variables in shell script, but it is not working. query=firsteval avgOverall$query[1]=28.5avgOverall=$((`eval echo '${avgOverall'$query'[1]}'`+1)) | bcBut I am getting below errorbash: 28.5+1: syntax error: operand expected (error token is 28.5+1)What am I doing wrong?
How to do calculation on eval variables in shell script
shell script