I have a specific text: ==4 to be replaced by ==5. So, I initialized two variables with $i and $j with 4 and 5 respectively and used this sed command to do the work:
sed -i 's/==${i}/==${j}/g' "filename.txt"
When I echo ==${i}, I get ==4 and similar for the j but the above sed command doesn't work or doesn't replace ==4 with ==5. What am I missing here? Is == the problem here?
I am using Linux.