#! /bin/bash
A=$1
B=$2
i= ... # i is a filename generated with find command
j="$(echo $i | sed -E 's/$A/$B/')"
I am trying to change part of i, (A in this case), into something else (B in this case), and store it in j.
I've executed this, but apparently j is identical to i. I'm pretty sure I've put command line arguments correctly.
Did I do something wrong?