I'm trying to get a value of the variable by double substituting inside the string as follows
i=1
df1 ='date_col'
X='value of the string is $df$i'
But getting invalid substitution error
I need the output as follows
echo $X
value of the string is date_col