I've seen this question asked before but I can't seem to get the grasp of it.
I have this variable that I get from user input
read column_number
and then I join it with the "col" prefix to form the name of my variable
selected_column="col"$column_number
But when I try to evaluate it to get the result, I keep getting the (standard_in) 1: syntax error
sum=$(round $sum+"echo ${!selected_column}", 2)